Guest User

Untitled

a guest
Sep 19th, 2020
4,249
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 1 0
  1. #+TITLE: Doom Emacs For Noobs
  2.  
  3. * Installation
  4. ** Installing dependencies
  5. + Git 2.23+
  6. + Emacs 26.1+ (27.x is recommended)
  7. + ripgrep 11.0+
  8. + GNU Find
  9. + (Optional) fd 7.3.0+ (known as fd-find on Debian, Ubuntu & derivatives) – improves performance for many file indexing commands
  10. ** Installing Doom Emacs
  11. + git clone https://github.com/hlissner/doom-emacs ~/.emacs.d
  12. + ~/.emacs.d/bin/doom install
  13. /doom install/ will set up your DOOMDIR at ~/.doom.d (if it doesn’t already exist) and will work you through the first-time setup of Doom Emacs. Carefully follow any instructions it puts out. If this is your first time, you should run /doom doctor/. This will diagnose common issues with your system or config.
  14. * Utilities found in bin/doom
  15. ** doom sync:
  16. This synchronizes your config with Doom Emacs. It ensures that needed packages are installed, orphaned packages are removed and necessary metadata correctly generated. Run this whenever you modify your doom! block or packages.el file. You’ll need doom sync -u if you override the recipe of package installed by another module.
  17. ** doom upgrade:
  18. Updates Doom Emacs (if available) and all its packages. Doom is an active project and many of its 300+ packages are in active development as well. It is wise to occasionally update
  19. ** doom upgrade --packages
  20. To update only your packages (and not Doom itself)
  21. ** doom doctor:
  22. If Doom misbehaves, the doc will diagnose common issues with your installation, system and environment.
  23. ** doom purge:
  24. Over time, the repositories for Doom’s plugins will accumulate. Run this command from time to time to delete old, orphaned packages, and with the -g switch to compact existing package repos.
  25. ** doom env:
  26. (Re)generates an “envvar file”, which is a snapshot of your shell environment that Doom loads at startup. If your app launcher or OS launches Emacs in the wrong environment you will need this. **This is required for GUI Emacs users on MacOS.**
  27. ** doom help:
  28. An overview of the available commands that doom provides. Use /doom help COMMAND/ to display documentation for a particular COMMAND.
  29. ** NOTE: I recommend you add your .emacs.d/bin to your PATH so you can call doom directly and from anywhere. Accomplish this by adding this to your .bashrc or .zshrc file: ~export PATH=”$HOME/.emacs.d/bin:$PATH”~
  30. * DOOMDIR
  31. You can configure Doom by tweaking the files found in your DOOMDIR. Doom expects this directory to be found in one of:
  32. ** ~/.config/doom (respects $XDG_CONFIG_HOME)
  33. ** or ~/.doom.d
  34. This directory is referred to as your DOOMDIR. Only one of these directories should exist (Doom will only recognize one).
  35. * Configuration Files
  36. ** init.el
  37. Where you’ll find your doom! block, which controls what Doom modules are enabled and in what order they will be loaded. This file is evaluated early when Emacs is starting up; before any other module has loaded. You generally shouldn’t add code to this file unless you’re targeting Doom’s CLI or something that needs to be configured very early in the startup process.
  38. ** config.el
  39. Here is where 99.99% of your private configuration should go. Anything in here is evaluated after all other modules have loaded, when starting up Emacs.
  40. ** packages.el
  41. Package management is done from this file; where you’ll declare what packages to install and where from.
  42. * Package management
  43. **Doom Emacs does not use package.el** (the package manager built into Emacs). Packages are declared in packages.el files (in DOOMDIR).
  44. ** To install a package, add a package! declaration for it to DOOMDIR/packages.el:
  45.  
  46. #+BEGIN_SRC elisp
  47. ;; Install a package named "example" from ELPA, MELPA, or Emacsmirror
  48. (package! example)
  49. #+END_SRC
  50.  
  51. ** IMPORTANT: New packages won’t be installed until you run doom sync.
  52. ** DO NOT configure packages here (definitely no use-package! or after! in here!). This file is read in an isolated environment and will have no lasting effect.
  53.  
  54.  
Add Comment
Please, Sign In to add comment