formatting

This commit is contained in:
Janis 2024-10-17 20:23:51 +02:00
parent db5a92e88c
commit b1c6390461

View file

@ -271,7 +271,7 @@ Light theme for writing
Manage themes, use dark-theme by default:
#+begin_src emacs-lisp
(defvar nemo/dark-theme 'doom-one)
(defvar nemo/dark-theme 'gruvbox-dark-medium)
(defvar nemo/light-theme 'gruvbox-light-medium)
(add-hook 'after-init-hook (lambda () (load-theme nemo/dark-theme t)))
@ -286,13 +286,15 @@ Disable themes before loading a new one, from [[https://github.com/larstvei/dot-
Helper function for switching themes.
#+begin_src emacs-lisp
(defun nemo/set-light-theme ()
(interactive)
(load-theme nemo/light-theme t))
(defun nemo/set-light-theme ()
"load the light theme."
(interactive)
(load-theme nemo/light-theme t))
(defun nemo/set-dark-theme ()
(interactive)
(load-theme nemo/dark-theme t))
(defun nemo/set-dark-theme ()
"load the dark theme."
(interactive)
(load-theme nemo/dark-theme t))
#+end_src
** Fonts
@ -331,7 +333,6 @@ Use both fixed and variable pitched fonts and faces.
#+begin_src emacs-lisp
(use-package mixed-pitch
:straight t
:defer t
:hook ((org-mode . mixed-pitch-mode)
(LaTeX-mode . mixed-pitch-mode)))
#+end_src
@ -616,11 +617,15 @@ Also use =undo-fu=, which evil can use.
** =ripgrep= & Co.
#+begin_src emacs-lisp
(use-package ripgrep
:straight t
:defer t)
(use-package ripgrep
:straight t
:defer t)
(use-package rg
(use-package rg
:straight t
:defer t)
(use-package wgrep
:straight t
:defer t)
#+end_src
@ -756,7 +761,7 @@ In case LaTeX previews are too small, use this to increase them.
(plist-put org-format-latex-options :scale 1.35)
#+end_src
==pretty-entities= allows for latex symbols to be embedded into org-mode.
=pretty-entities= allows for latex symbols to be embedded into org-mode.
=org-hide-leading-stars= hides all but one star on org headings.
#+begin_src emacs-lisp
(setq org-adapt-indentation t
@ -765,7 +770,7 @@ In case LaTeX previews are too small, use this to increase them.
org-pretty-entities t)
#+end_src
Let emacs act according to the language's rules inside of a source block.
Let Emacs act according to the language's rules inside of a source block.
#+begin_src emacs-lisp
(setq org-src-fontify-natively t
org-src-tab-acts-natively t