Benchmark, raindow parenthesis, ef themes
This commit is contained in:
55
config.el
55
config.el
@@ -1,3 +1,9 @@
|
||||
;; (use-package! benchmark-init
|
||||
;; :ensure t
|
||||
;; :config
|
||||
;; ;; To disable collection of benchmark data after init is done.
|
||||
;; (add-hook 'after-init-hook 'benchmark-init/deactivate))
|
||||
|
||||
(setq doom-font (font-spec :family "Maple Mono" :size 20))
|
||||
(add-to-list 'default-frame-alist '(height . 53))
|
||||
(add-to-list 'default-frame-alist '(width . 120))
|
||||
@@ -6,6 +12,33 @@
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(setq org-directory "~/org/")
|
||||
|
||||
;; (use-package! ef-themes
|
||||
;; :ensure t
|
||||
;; :init
|
||||
;; ;; This makes the Modus commands listed below consider only the Ef
|
||||
;; ;; themes. For an alternative that includes Modus and all
|
||||
;; ;; derivative themes (like Ef), enable the
|
||||
;; ;; `modus-themes-include-derivatives-mode' instead. The manual of
|
||||
;; ;; the Ef themes has a section that explains all the possibilities:
|
||||
;; ;;
|
||||
;; ;; - Evaluate `(info "(ef-themes) Working with other Modus themes or taking over Modus")'
|
||||
;; ;; - Visit <https://protesilaos.com/emacs/ef-themes#h:6585235a-5219-4f78-9dd5-6a64d87d1b6e>
|
||||
;; (ef-themes-take-over-modus-themes-mode 1)
|
||||
;; :bind
|
||||
;; (("<f5>" . modus-themes-rotate)
|
||||
;; ("C-<f5>" . modus-themes-select)
|
||||
;; ("M-<f5>" . modus-themes-load-random))
|
||||
;; :config
|
||||
;; ;; All customisations here.
|
||||
;; (setq modus-themes-mixed-fonts t)
|
||||
;; (setq modus-themes-italic-constructs t)
|
||||
|
||||
;; ;; ;; Finally, load your theme of choice (or a random one with
|
||||
;; ;; ;; `modus-themes-load-random', `modus-themes-load-random-dark',
|
||||
;; ;; ;; `modus-themes-load-random-light').
|
||||
;; ;; (modus-themes-load-theme 'ef-light)
|
||||
;; )
|
||||
|
||||
(use-package! nano-modeline
|
||||
:config
|
||||
(add-hook 'prog-mode-hook #'nano-modeline-prog-mode)
|
||||
@@ -41,6 +74,11 @@
|
||||
(map! "M-s m" #'gptel-menu)
|
||||
)
|
||||
|
||||
(use-package! rainbow-delimiters
|
||||
:hook ((prog-mode . rainbow-delimiters-mode)
|
||||
(typst-ts-mode . rainbow-delimiters-mode)
|
||||
(foo-mode . rainbow-delimiters-mode)))
|
||||
|
||||
(use-package! typst-ts-mode
|
||||
:init
|
||||
(add-hook 'typst-ts-mode-hook #'eglot-ensure)
|
||||
@@ -77,17 +115,12 @@
|
||||
)
|
||||
|
||||
(use-package org-latex-preview
|
||||
:hook ((org-mode . org-latex-preview-mode)
|
||||
(org-latex-preview-mode . org-latex-preview-center-mode))
|
||||
:config
|
||||
;; Increase preview width
|
||||
(plist-put org-latex-preview-appearance-options
|
||||
:page-width 0.8)
|
||||
|
||||
(add-hook 'org-mode-hook 'org-latex-preview-mode)
|
||||
|
||||
;; ;; Block C-n, C-p etc from opening up previews when using `org-latex-preview-mode'
|
||||
;; (setq org-latex-preview-mode-ignored-commands
|
||||
;; '(next-line previous-line mwheel-scroll
|
||||
;; scroll-up-command scroll-down-command))
|
||||
;; (plist-put org-latex-preview-appearance-options
|
||||
;; :page-width 0.8)
|
||||
|
||||
;; ;; Enable consistent equation numbering
|
||||
(setq org-latex-preview-numbered t)
|
||||
@@ -100,6 +133,7 @@
|
||||
;; More immediate live-previews -- the default delay is 1 second
|
||||
(setq org-latex-preview-mode-update-delay 0)
|
||||
|
||||
;; code for centering LaTeX previews -- a terrible idea
|
||||
(defun my/org-latex-preview-uncenter (ov)
|
||||
(overlay-put ov 'before-string nil))
|
||||
(defun my/org-latex-preview-recenter (ov)
|
||||
@@ -131,4 +165,5 @@
|
||||
(remove-hook 'org-latex-preview-overlay-update-functions
|
||||
#'my/org-latex-preview-center)
|
||||
(remove-hook 'org-latex-preview-overlay-open-functions
|
||||
#'my/org-latex-preview-uncenter))))
|
||||
#'my/org-latex-preview-uncenter)))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user