Update & revise docs
+ Getting Started + Add "Using/loading local packages" section + Add "Pinning packages to specific commits" section + Clarify prereqs & revise install docs + Revise package-management section + FAQ + Add package management section
This commit is contained in:
parent
32e42a5608
commit
665b627b7c
5 changed files with 610 additions and 482 deletions
82
docs/faq.org
82
docs/faq.org
|
@ -20,11 +20,6 @@
|
|||
- [[#should-i-fork-doom-to-customize-it][Should I fork Doom to customize it?]]
|
||||
- [[#how-do-i-configure-doom-emacs][How do I configure Doom Emacs?]]
|
||||
- [[#how-do-i-enable-or-disable-a-doom-module][How do I enable or disable a Doom module?]]
|
||||
- [[#how-do-i-install-a-package-from-elpa][How do I install a package from ELPA?]]
|
||||
- [[#how-do-i-install-a-package-from-githubanother-source][How do I install a package from github/another source?]]
|
||||
- [[#how-do-i-change-where-an-existing-package-is-installed-from][How do I change where an existing package is installed from?]]
|
||||
- [[#how-do-i-disable-a-package-completely][How do I disable a package completely?]]
|
||||
- [[#how-do-i-reconfigure-a-package-included-in-doom][How do I reconfigure a package included in Doom?]]
|
||||
- [[#how-do-i-change-the-theme][How do I change the theme?]]
|
||||
- [[#how-do-i-change-the-fonts][How do I change the fonts?]]
|
||||
- [[#how-do-i-bind-my-own-keys-or-change-existing-ones][How do I bind my own keys (or change existing ones)?]]
|
||||
|
@ -39,6 +34,13 @@
|
|||
- [[#when-should-and-shouldnt-i-use-bindoom][When should and shouldn't I use ~bin/doom~?]]
|
||||
- [[#when-to-run-doom-sync][When to run ~doom sync~]]
|
||||
- [[#how-to-suppress-confirmation-prompts-while-bindoom-is-running][How to suppress confirmation prompts while ~bin/doom~ is running]]
|
||||
- [[#package-management][Package Management]]
|
||||
- [[#how-do-i-install-a-package-from-elpa][How do I install a package from ELPA?]]
|
||||
- [[#how-do-i-install-a-package-from-githubanother-source][How do I install a package from github/another source?]]
|
||||
- [[#how-do-i-change-where-an-existing-package-is-installed-from][How do I change where an existing package is installed from?]]
|
||||
- [[#how-do-i-disable-a-package-completely][How do I disable a package completely?]]
|
||||
- [[#how-do-i-reconfigure-a-package-included-in-doom][How do I reconfigure a package included in Doom?]]
|
||||
- [[#where-does-straight-clonebuild-packages-to][Where does straight clone/build packages to?]]
|
||||
- [[#defaults][Defaults]]
|
||||
- [[#why-ivy-over-helm][Why Ivy over Helm?]]
|
||||
- [[#why-are-there-no-default-keybinds-for-smartparens-for-evil-users][Why are there no default keybinds for Smartparens (for evil users)?]]
|
||||
|
@ -437,53 +439,6 @@ module list with Doom.
|
|||
See the "[[file:getting_started.org::*Configuration modules][Configuration modules]]" section of the [[file:getting_started.org][Getting Started]] guide for more
|
||||
information.
|
||||
|
||||
** How do I install a package from ELPA?
|
||||
See the "[[file:getting_started.org::*Installing%20packages][Installing packages]]" section of the [[file:getting_started.org][Getting Started]] guide.
|
||||
|
||||
** How do I install a package from github/another source?
|
||||
See the "[[file:getting_started.org::*Installing%20packages%20from%20external%20sources][Installing packages from external sources]]" section of the [[file:getting_started.org][Getting
|
||||
Started]] guide.
|
||||
|
||||
** How do I change where an existing package is installed from?
|
||||
See the "[[file:getting_started.org::*Changing%20a%20built-in%20recipe%20for%20a%20package][Changing a built-in recipe for a package]]" section of the [[file:getting_started.org][Getting
|
||||
Started]] guide.
|
||||
|
||||
** How do I disable a package completely?
|
||||
See the "[[file:getting_started.org::*Disabling%20packages][disabling packages]]" section of the [[file:getting_started.org][Getting Started]] guide.
|
||||
|
||||
** How do I reconfigure a package included in Doom?
|
||||
~use-package!~ and ~after!~ (wrappers around ~use-package~ and
|
||||
~eval-after-load~, respectively) are your bread and butter for configuring
|
||||
packages in Doom.
|
||||
|
||||
#+BEGIN_SRC elisp
|
||||
;; Takes a feature symbol or a library name (string)
|
||||
(after! evil
|
||||
(setq evil-magic nil))
|
||||
|
||||
;; Takes a major-mode, a quoted hook function or a list of either
|
||||
(add-hook! python-mode
|
||||
(setq python-shell-interpreter "bpython"))
|
||||
|
||||
(use-package! hl-todo
|
||||
;; if you omit :defer, :hook, :commands, or :after, then the package is loaded
|
||||
;; immediately. By using :hook here, the `hl-todo` package won't be loaded
|
||||
;; until prog-mode-hook is triggered (by activating a major mode derived from
|
||||
;; it, e.g. python-mode)
|
||||
:hook (prog-mode . hl-todo-mode)
|
||||
:init
|
||||
;; code here will run immediately
|
||||
:config
|
||||
;; code here will run after the package is loaded
|
||||
(setq hl-todo-highlight-punctuation ":"))
|
||||
|
||||
;; There's also `setq-hook!' for setting variables buffer-locally
|
||||
(setq-hook! python-mode python-indent-offset 2)
|
||||
#+END_SRC
|
||||
|
||||
See the "[[file:getting_started.org::*Configuring%20Doom][Configuring Doom]]" section of the [[file:getting_started.org][Getting Started]] guide for more
|
||||
explanation and examples.
|
||||
|
||||
** How do I change the theme?
|
||||
There are two ways to load a theme. Both assume the theme is installed and
|
||||
available. You can either set ~doom-theme~ or manually load a theme with the
|
||||
|
@ -755,6 +710,29 @@ doom --yes update
|
|||
YES=1 doom update
|
||||
#+END_SRC
|
||||
|
||||
* Package Management
|
||||
** How do I install a package from ELPA?
|
||||
See the "[[file:getting_started.org::*Installing%20packages][Installing packages]]" section of the [[file:getting_started.org][Getting Started]] guide.
|
||||
|
||||
** How do I install a package from github/another source?
|
||||
See the "[[file:getting_started.org::*Installing%20packages%20from%20external%20sources][Installing packages from external sources]]" section of the [[file:getting_started.org][Getting
|
||||
Started]] guide.
|
||||
|
||||
** How do I change where an existing package is installed from?
|
||||
See the "[[file:getting_started.org::*Changing a recipe for a included package][Changing a recipe for a included package]]" section of the [[file:getting_started.org][Getting
|
||||
Started]] guide.
|
||||
|
||||
** How do I disable a package completely?
|
||||
See the "[[file:getting_started.org::*Disabling%20packages][disabling packages]]" section of the [[file:getting_started.org][Getting Started]] guide.
|
||||
|
||||
** How do I reconfigure a package included in Doom?
|
||||
See the "[[file:getting_started.org::*Configuring packages][configuring packages]]" section of the Getting Started guide.
|
||||
|
||||
** Where does straight clone/build packages to?
|
||||
Straight clones packages to =~/.emacs.d/.local/straight/repos/REPO-NAME=, then
|
||||
later symlinks and byte-compiles them to
|
||||
=~/.emacs.d/.local/straight/build/PACKAGE-NAME= when they are "built".
|
||||
|
||||
* Defaults
|
||||
** Why Ivy over Helm?
|
||||
Short answer: ivy is simpler to maintain.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue