(Emacs/config)~clean up some config in org-mode section

This commit is contained in:
2024-06-11 18:09:04 +01:00
parent ebe69ceb21
commit b00b37fa4e

View File

@@ -2953,7 +2953,6 @@ pdf-process, code listing options via minted and the format options
for latex fragments.
#+begin_src emacs-lisp
(use-package org
:straight t
:defer t
:init
(setq org-format-latex-options
@@ -2989,7 +2988,6 @@ copy pasted the majority of this, tweaking it till it felt good. Doom
Emacs was very helpful here.
#+begin_src emacs-lisp
(use-package org
:straight t
:defer t
:init
(setq org-edit-src-content-indentation 0
@@ -3016,7 +3014,6 @@ Emacs was very helpful here.
Hooks, prettify-symbols and records for auto insertion.
#+begin_src emacs-lisp
(use-package org
:straight t
:defer t
:hook
(org-mode-hook . prettify-symbols-mode)
@@ -3036,7 +3033,6 @@ Hooks, prettify-symbols and records for auto insertion.
Some bindings for org mode.
#+begin_src emacs-lisp
(use-package org
:straight t
:defer t
:general
(file-leader
@@ -3126,7 +3122,7 @@ Org agenda provides a nice viewing for schedules. With org mode it's
a very tidy way to manage your time.
#+begin_src emacs-lisp
(use-package org-agenda
:after org
:defer t
:init
(defconst +org/agenda-root "~/Text"
"Root directory for all agenda files")
@@ -3143,10 +3139,8 @@ a very tidy way to manage your time.
"a" `(,(proc (interactive)
(find-file (completing-read "Enter directory: " org-agenda-files nil t)))
:which-key "Open agenda directory"))
(app-leader
"a" #'org-agenda)
(nmmap
:keymaps 'org-agenda-mode-map
"zd" #'org-agenda-day-view
@@ -3167,7 +3161,7 @@ a very tidy way to manage your time.
what org-capture does.
#+begin_src emacs-lisp
(use-package org-capture
:after org
:defer t
:init
(setq
org-default-notes-file (concat org-directory "/todo.org")
@@ -3313,25 +3307,6 @@ reveal.js. Pretty nifty and it's easy to use.
(setq org-reveal-root "https://cdn.jsdelivr.net/npm/reveal.js"
org-reveal-theme "sky"))
#+end_src
** WAIT Org fragtog
:PROPERTIES:
:header-args:emacs-lisp: :tangle no
:END:
Toggle latex fragments in org mode so you get fancy maths symbols. I
use latex a bit in org mode as it is the premier way of getting
mathematical symbols rendered, but org mode > latex.
Delimited environments are aplenty, escaped brackets and dollar signs
are my favourite. Here's a snippet:
$\int_{-\infty}^{\infty}e^{-x^2}dx = \sqrt{\pi}$.
[2023-09-10 Sun] Emacs 29 complains constantly about this, probably
because this isn't implemented that well. Regardless it wasn't that
necessary anyway, just a nice feature to have.
#+begin_src emacs-lisp
(use-package org-fragtog
:hook (org-mode-hook . org-fragtog-mode))
#+end_src
** Org superstar
Org superstar adds unicode symbols for headers, much better than the
default asterisks.