(Emacs)~clean up some code and descriptions

This commit is contained in:
2023-07-14 19:49:33 +01:00
parent 8d0c5e3faa
commit 2050a1df3a

View File

@@ -498,14 +498,16 @@ Some bindings that I couldn't fit elsewhere easily.
"t" #'+oreo/switch-theme) "t" #'+oreo/switch-theme)
(code-leader (code-leader
"F" (list (proc (interactive) (find-file "~/Code/")) ':which-key "Open ~/Code/")) "F" `(,(proc (interactive) (find-file "~/Code/"))
:which-key "Open ~/Code/"))
(file-leader (file-leader
"f" #'find-file "f" #'find-file
"F" #'find-file-other-frame "F" #'find-file-other-frame
"s" #'save-buffer "s" #'save-buffer
"p" (list (proc (interactive) (find-file (concat user-emacs-directory "config.org"))) "p" `(,(proc (interactive)
':which-key "Open config.org")) (find-file (concat user-emacs-directory "config.org")))
:which-key "Open config.org"))
(quit-leader (quit-leader
"q" #'save-buffers-kill-terminal "q" #'save-buffers-kill-terminal
@@ -2438,14 +2440,13 @@ memcheck: $(OUT)
Org is, at its most basic, a markup language. Files use the ".org" Org is, at its most basic, a markup language. Files use the ".org"
extension and use =org-mode= to write text, with the ability to export extension and use =org-mode= to write text, with the ability to export
to a few formats, all within Emacs. However, this is a massive to a few formats, all within Emacs. Some other features include:
disservice to its incredible capabilities: + A complete spreadsheet system, with formulas (including
+ Complete spreadsheet system, with formulas (including
[[*Calculator][calc-mode]] integration) [[*Calculator][calc-mode]] integration)
+ Evaluation of code blocks, even using the results of them in exports + Evaluation of code blocks, even using the results of them in exports
(to, say, a $\LaTeX$ or HTML document) (to, say, a $\LaTeX$ or HTML document)
+ This includes exporting all code blocks of a document to a code + This includes exporting code blocks to a code file. All the
file, say all the emacs-lisp files in this document to ~config.el~ emacs-lisp code blocks in this file are compiled to =config.el=
([[file:elisp/literate.el][literate]]) ([[file:elisp/literate.el][literate]])
+ Complete calendar/todo system with deadlines, scheduling and + Complete calendar/todo system with deadlines, scheduling and
repeaters repeaters
@@ -2453,7 +2454,7 @@ disservice to its incredible capabilities:
the org AST! the org AST!
+ Writing latex in document, with ability to render them on demand, + Writing latex in document, with ability to render them on demand,
and exporting to PDFs through Latex and exporting to PDFs through Latex
** Aesthetic defaults ** Org Essentials
Org has a ton of settings to tweak, which change your experience quite Org has a ton of settings to tweak, which change your experience quite
a bit. My setup should be as portable as possible and (/sometimes/) I a bit. My setup should be as portable as possible and (/sometimes/) I
need to access org mode files in other editors, so org files should be need to access org mode files in other editors, so org files should be
@@ -2497,7 +2498,7 @@ Some arbitrary notes:
(vm-imap . vm-visit-imap-folder-other-frame) (vm-imap . vm-visit-imap-folder-other-frame)
(file . find-file)))) (file . find-file))))
#+end_src #+end_src
** Latex options ** Org Latex
Org mode has deep integration with latex, can export to PDF and even Org mode has deep integration with latex, can export to PDF and even
display latex fragments in the document directly. I setup the display latex fragments in the document directly. I setup the
pdf-process, code listing options via minted and the format options pdf-process, code listing options via minted and the format options
@@ -2593,7 +2594,6 @@ Some bindings for org mode.
(swiper "^\\* ")) (swiper "^\\* "))
:general :general
(file-leader (file-leader
"w" #'org-capture
"l" #'org-store-link "l" #'org-store-link
"i" #'org-insert-last-stored-link) "i" #'org-insert-last-stored-link)
(code-leader (code-leader
@@ -2738,6 +2738,7 @@ crash (like the async handler for org-export). Works really well with
(org-latex-export-to-latex))))) (org-latex-export-to-latex)))))
#+end_src #+end_src
** Org ref ** Org ref
For bibliographic stuff in $\LaTeX$ export.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-ref (use-package org-ref
:straight t :straight t
@@ -2807,8 +2808,8 @@ $\int_{-\infty}^{\infty}e^{-x^2}dx = \sqrt{\pi}$.
:hook (org-mode-hook . org-fragtog-mode)) :hook (org-mode-hook . org-fragtog-mode))
#+end_src #+end_src
** Org superstar ** Org superstar
Org superstar adds cute little Unicode symbols for headers, much Org superstar adds unicode symbols for headers, much better than the
better than the default asterisks. default asterisks.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package org-superstar (use-package org-superstar
:hook (org-mode-hook . org-superstar-mode)) :hook (org-mode-hook . org-superstar-mode))