Skip to content

Commit

Permalink
highlight latex elements in org.
Browse files Browse the repository at this point in the history
  • Loading branch information
gzagatti committed Nov 3, 2022
1 parent 74d86d2 commit f4fb6bd
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion emacs/emacs-config.org
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,9 @@ I configure two themes. A light theme to use during the day and a dark one for l
'(org-ellipsis ((t (:background nil :foreground "#999999" :box nil :underline nil))))
;; ensure that trailing and tab markers are muted
'(whitespace-trailing ((t (:foreground nil :background "#636363"))))
'(whitespace-tab ((t (:foreground "#636363" :background nil)))))
'(whitespace-tab ((t (:foreground "#636363" :background nil))))
;; remove background from latex in org
'(org-latex-and-related ((t (:foreground "#336699" :background "#f8fbf8")))))
(disable-theme 'leuven)
#+end_src

Expand Down Expand Up @@ -980,6 +982,12 @@ foo @holme2015a @holme2012 @masuda2017
(add-hook 'org-mode-hook #'(lambda () (org-bullets-mode 1)))

;; indentation
;; see: https://orgmode.org/manual/Org-Indent-Mode.html
(setq org-startup-indented nil)

;; latex highlight
;; see: https://stackoverflow.com/questions/17239273/org-mode-buffer-latex-syntax-highlighting
(setq org-highlight-latex-and-related '(latex script entities))

;; fold
(setq org-ellipsis " ▼")
Expand Down

0 comments on commit f4fb6bd

Please sign in to comment.