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: Manage themes, use dark-theme by default:
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defvar nemo/dark-theme 'doom-one) (defvar nemo/dark-theme 'gruvbox-dark-medium)
(defvar nemo/light-theme 'gruvbox-light-medium) (defvar nemo/light-theme 'gruvbox-light-medium)
(add-hook 'after-init-hook (lambda () (load-theme nemo/dark-theme t))) (add-hook 'after-init-hook (lambda () (load-theme nemo/dark-theme t)))
@ -287,10 +287,12 @@ Disable themes before loading a new one, from [[https://github.com/larstvei/dot-
Helper function for switching themes. Helper function for switching themes.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun nemo/set-light-theme () (defun nemo/set-light-theme ()
"load the light theme."
(interactive) (interactive)
(load-theme nemo/light-theme t)) (load-theme nemo/light-theme t))
(defun nemo/set-dark-theme () (defun nemo/set-dark-theme ()
"load the dark theme."
(interactive) (interactive)
(load-theme nemo/dark-theme t)) (load-theme nemo/dark-theme t))
#+end_src #+end_src
@ -331,7 +333,6 @@ Use both fixed and variable pitched fonts and faces.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package mixed-pitch (use-package mixed-pitch
:straight t :straight t
:defer t
:hook ((org-mode . mixed-pitch-mode) :hook ((org-mode . mixed-pitch-mode)
(LaTeX-mode . mixed-pitch-mode))) (LaTeX-mode . mixed-pitch-mode)))
#+end_src #+end_src
@ -623,6 +624,10 @@ Also use =undo-fu=, which evil can use.
(use-package rg (use-package rg
:straight t :straight t
:defer t) :defer t)
(use-package wgrep
:straight t
:defer t)
#+end_src #+end_src
** VTerm ** VTerm
@ -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) (plist-put org-format-latex-options :scale 1.35)
#+end_src #+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. =org-hide-leading-stars= hides all but one star on org headings.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq org-adapt-indentation t (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) org-pretty-entities t)
#+end_src #+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 #+begin_src emacs-lisp
(setq org-src-fontify-natively t (setq org-src-fontify-natively t
org-src-tab-acts-natively t org-src-tab-acts-natively t