Simplify package block headers by adding inheritance

This commit is contained in:
tecosaur 2020-01-10 01:55:12 +08:00
parent 6440f76536
commit 414a3db9ad
1 changed files with 13 additions and 6 deletions

View File

@ -158,8 +158,11 @@ our package manager can't deal with; see [[https://github.com/raxod502/straight.
(package! builtin-package :recipe (:branch "develop")) (package! builtin-package :recipe (:branch "develop"))
#+END_SRC #+END_SRC
** Packages ** Packages
:PROPERTIES:
:header-args: :tangle "packages.el"
:END:
*** Auto-complete *** Auto-complete
#+BEGIN_SRC emacs-lisp :tangle "packages.el" #+BEGIN_SRC emacs-lisp
(package! company-tabnine ; tab9 autocomplete (package! company-tabnine ; tab9 autocomplete
:recipe (:host github :repo "TommyX12/company-tabnine" :recipe (:host github :repo "TommyX12/company-tabnine"
:files ("company-tabnine.el" "fetch-binaries.sh"))) :files ("company-tabnine.el" "fetch-binaries.sh")))
@ -167,7 +170,7 @@ our package manager can't deal with; see [[https://github.com/raxod502/straight.
*** Prettification *** Prettification
~prettify-mode~ is nice and all, but adding substitutions is a little verbose. ~prettify-mode~ is nice and all, but adding substitutions is a little verbose.
This helps with that. This helps with that.
#+BEGIN_SRC emacs-lisp :tangle "packages.el" #+BEGIN_SRC emacs-lisp
(package! prettify-utils ; simplify messing with prettify-mode (package! prettify-utils ; simplify messing with prettify-mode
:recipe (:host github :repo "Ilazki/prettify-utils.el")) :recipe (:host github :repo "Ilazki/prettify-utils.el"))
#+END_SRC #+END_SRC
@ -175,7 +178,7 @@ This helps with that.
Org tables aren't the prettiest thing to look at. This package is supposed to Org tables aren't the prettiest thing to look at. This package is supposed to
redraw them in the buffer with box-drawing characters. Sounds like an redraw them in the buffer with box-drawing characters. Sounds like an
improvement to me! Just need to get it working... improvement to me! Just need to get it working...
#+BEGIN_SRC emacs-lisp :tangle "packages.el" #+BEGIN_SRC emacs-lisp
(package! org-pretty-table-mode (package! org-pretty-table-mode
:recipe (:host github :repo "Fuco1/org-pretty-table")) :recipe (:host github :repo "Fuco1/org-pretty-table"))
#+END_SRC #+END_SRC
@ -184,12 +187,12 @@ such a thing a standard table spec ... or standard anything really. Because
~org-md~ is a goody-two-shoes, it just uses HTML for all these non-standardised ~org-md~ is a goody-two-shoes, it just uses HTML for all these non-standardised
elements (a lot of them). So ~ox-gfm~ is handy for exporting markdown with all the elements (a lot of them). So ~ox-gfm~ is handy for exporting markdown with all the
features that GitHub has. Initialised in [[Exporting to GFM]]. features that GitHub has. Initialised in [[Exporting to GFM]].
#+BEGIN_SRC emacs-lisp :tangle "packages.el" #+BEGIN_SRC emacs-lisp
(package! ox-gfm) (package! ox-gfm)
#+END_SRC #+END_SRC
Pandoc is also a very handy export tool. ~org-pandoc~ also exists, but this seems Pandoc is also a very handy export tool. ~org-pandoc~ also exists, but this seems
to be better maintained. to be better maintained.
#+BEGIN_SRC emacs-lisp :tangle "packages.el" #+BEGIN_SRC emacs-lisp
(package! ox-pandoc) (package! ox-pandoc)
#+END_SRC #+END_SRC
* Package configuration * Package configuration
@ -284,7 +287,11 @@ for ~GFM~, otherwise let's just use ~markdown~.
We want to set the org directory, I tend to keep everything in ~~/Desktop/TEC~ We want to set the org directory, I tend to keep everything in ~~/Desktop/TEC~
anyway, so... anyway, so...
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(setq org-directory "~/Desktop/TEC/Other/org") (setq org-directory "~/Desktop/TEC/Organisation")
#+END_SRC
It's also nice to have properties be inherited
#+BEGIN_SRC emacs-lisp
(setq org-use-property-inheritance t)
#+END_SRC #+END_SRC
*** Visuals *** Visuals
**** In editor **** In editor