Clean up tangling settings for packages
This commit is contained in:
parent
fc6af1adc2
commit
0fad908a2d
26
config.org
26
config.org
|
@ -183,11 +183,17 @@ which is then enabled by
|
|||
systemctl --user enable emacs.service
|
||||
#+END_SRC
|
||||
* Package loading
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle "packages.el"
|
||||
:END:
|
||||
This file shouldn't be byte compiled.
|
||||
#+BEGIN_SRC emacs-lisp :tangle "packages.el"
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
#+END_SRC
|
||||
** Loading instructions
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle no
|
||||
:END:
|
||||
This is where you install packages, by declaring them with the ~package!~
|
||||
macro, then running ~doom refresh~ on the command line. You'll need to
|
||||
restart Emacs for your changes to take effect! Or at least, run =M-x doom/reload=.
|
||||
|
@ -197,14 +203,14 @@ Doom requires these, and disabling them may have terrible side effects.
|
|||
|
||||
*** Packages in MELPA/ELPA/emacsmirror
|
||||
To install ~some-package~ from MELPA, ELPA or emacsmirror:
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! some-package)
|
||||
#+END_SRC
|
||||
|
||||
*** Packages from git repositories
|
||||
To install a package directly from a particular repo, you'll need to specify
|
||||
a ~:recipe~. You'll find documentation on what ~:recipe~ accepts [[https://github.com/raxod502/straight.el#the-recipe-format][here]]:
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! another-package
|
||||
:recipe (:host github :repo "username/repo"))
|
||||
#+END_SRC
|
||||
|
@ -212,7 +218,7 @@ a ~:recipe~. You'll find documentation on what ~:recipe~ accepts [[https://githu
|
|||
If the package you are trying to install does not contain a ~PACKAGENAME.el~
|
||||
file, or is located in a subdirectory of the repo, you'll need to specify
|
||||
~:files~ in the ~:recipe~:
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! this-package
|
||||
:recipe (:host github :repo "username/repo"
|
||||
:files ("some-file.el" "src/lisp/*.el")))
|
||||
|
@ -221,13 +227,13 @@ file, or is located in a subdirectory of the repo, you'll need to specify
|
|||
*** Disabling built-in packages
|
||||
If you'd like to disable a package included with Doom, for whatever reason,
|
||||
you can do so here with the ~:disable~ property:
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! builtin-package :disable t)
|
||||
#+END_SRC
|
||||
You can override the recipe of a built in package without having to specify
|
||||
all the properties for ~:recipe~. These will inherit the rest of its recipe
|
||||
from Doom or MELPA/ELPA/Emacsmirror:
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! builtin-package :recipe (:nonrecursive t))
|
||||
(package! builtin-package-2 :recipe (:repo "myfork/package"))
|
||||
#+END_SRC
|
||||
|
@ -235,13 +241,10 @@ from Doom or MELPA/ELPA/Emacsmirror:
|
|||
Specify a ~:branch~ to install a package from a particular branch or tag.
|
||||
This is required for some packages whose default branch isn't 'master' (which
|
||||
our package manager can't deal with; see [[https://github.com/raxod502/straight.el/issues/279][raxod502/straight.el#279]])
|
||||
#+BEGIN_SRC emacs-lisp :tangle no
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! builtin-package :recipe (:branch "develop"))
|
||||
#+END_SRC
|
||||
** General packages
|
||||
:PROPERTIES:
|
||||
:header-args: :tangle "packages.el"
|
||||
:END:
|
||||
*** Auto-complete
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! company-tabnine ; tab9 autocomplete
|
||||
|
@ -333,6 +336,11 @@ to be better maintained.
|
|||
/NB: I found that ~org +pandoc~ exists, however after enabling it I couldn't find//
|
||||
/any org-pandoc-y commands with =M-x=, so I'm using this/
|
||||
|
||||
For automatically toggling LaTeX fragment previews there's this nice package
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! org-fragtog)
|
||||
#+END_SRC
|
||||
|
||||
Came across this and ... it's cool
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(package! org-graph-view :recipe (:host github :repo "alphapapa/org-graph-view"))
|
||||
|
|
Loading…
Reference in New Issue