Update ASAL functions

This commit is contained in:
trémeur 2023-01-28 13:56:46 +00:00
parent 306c253fff
commit eb5399f8a4
5 changed files with 96 additions and 84 deletions

View file

@ -466,6 +466,14 @@ Set general TODO keywords.
'((sequence "TODO" "|" "DONE" "CANCELLED")))
#+END_SRC
Track when I complete todos.
#+BEGIN_SRC emacs-lisp
(setq org-log-done 'time)
#+END_SRC
*** Export settings
In =emacs27= and above, I can set certain headlines not to be exported. I havent used this yet but it sounds useful.
#+BEGIN_SRC emacs-lisp
@ -475,12 +483,35 @@ In =emacs27= and above, I can set certain headlines not to be exported. I haven
(ox-extras-activate '(ignore-headlines)))
#+END_SRC
Settings for export, fairly basic because the only thing I regularly export is HTML DW post previews.
Add the =memoir= class for LaTeX export.
#+BEGIN_SRC emacs-lisp
(unless (version< emacs-version "27")
(add-to-list 'org-latex-classes
'("memoir"
"\\documentclass[9pt,b6paper]{memoir}
[NO-DEFAULT-PACKAGES]
\\input{header.tex}"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
#+END_SRC
Settings for export, mostly for DW post previews but also fic??
#+BEGIN_SRC emacs-lisp
(setq org-export-headline-levels 6)
(setq org-html-head-include-default-style nil)
(setq org-html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"https://tre.praze.net/fic/fic2.css\" />")
(setq org-footnote-define-inline t)
(setq org-export-with-creator nil)
(setq org-export-with-toc nil)
(setq org-export-time-stamp-file nil)
(setq org-latex-default-class "memoir")
(setq org-latex-compiler "xelatex")
(setq org-html-validation-link nil)
(setq org-html-doctype "html5")
#+END_SRC
Export non-breaking spaces properly; from, believe it or not, [[https://orgmode.org/manual/Advanced-Export-Configuration.html][the Org Manual]].
@ -499,26 +530,6 @@ Export non-breaking spaces properly; from, believe it or not, [[https://orgmode.
'my-latex-filter-nobreaks))
#+END_SRC
Add the =memoir= class for LaTeX export.
#+BEGIN_SRC emacs-lisp
(unless (version< emacs-version "27")
(add-to-list 'org-latex-classes
'("memoir"
"\\documentclass{memoir}
[NO-DEFAULT-PACKAGES]"
("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))))
#+END_SRC
Track when I complete todos.
#+BEGIN_SRC emacs-lisp
(setq org-log-done 'time)
#+END_SRC
*** Packages
**** =org-agenda-property=
@ -801,8 +812,8 @@ Support for various types of emoge.
#+BEGIN_SRC emacs-lisp
(use-package emojify
:init
(add-hook 'after-init-hook #'global-emojify-mode))
:hook
(text-mode . emojify-mode))
#+END_SRC
*** =hl-line=