Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
3.5 KiB

  1. # Installation
  2. ## Installing Emacs
  3. Obviously to use the Emacs Prelude you have to install Emacs
  4. first. Have a look at
  5. the
  6. [WikEmacs articles on installing Emacs](http://wikemacs.org/index.php/Installing_Emacs).
  7. ## Installation
  8. ### Automated
  9. You can install **Emacs Prelude** via the command line with either `curl` or
  10. `wget`. Naturally `git` is also required.
  11. #### Via Curl
  12. If you're using `curl` type the following command:
  13. ```bash
  14. curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
  15. ```
  16. #### Via Wget
  17. If you're using `wget` type:
  18. ```bash
  19. wget --no-check-certificate https://github.com/bbatsov/prelude/raw/master/utils/installer.sh -O - | sh
  20. ```
  21. ### Manual
  22. Make sure you do not have any `~/.emacs` file present.
  23. ```bash
  24. git clone git://github.com/bbatsov/prelude.git path/to/local/repo
  25. ln -s path/to/local/repo ~/.emacs.d
  26. cd ~/.emacs.d
  27. ```
  28. If you are using Windows, you should check what Emacs thinks the `~` directory is by running Emacs and typing `C-x d ~/<RET>`, and then adjust the command appropriately.
  29. ## Updating Prelude
  30. ### Manual update
  31. The update procedure is fairly straightforward and consists of 3 steps:
  32. #### Update all bundled packages
  33. Just run <kbd>M-x package-list-packages RET U x</kbd>.
  34. #### Update Prelude's code
  35. ```bash
  36. cd path/to/prelude/installation
  37. git pull
  38. ```
  39. The `path/to/prelude/installation` is usually `~/.emacs.d` (at least
  40. on Unix systems).
  41. #### Restart Prelude
  42. It's generally a good idea to stop Emacs after you do the update. The
  43. next time Prelude starts it will install any new dependencies (if
  44. there are such).
  45. ### Automatic update
  46. Simply run <kbd>M-x prelude-update</kbd> from Emacs itself and restart Emacs afterwards.
  47. ## Pinning packages
  48. By default, Prelude will install packages from the melpa and gnu package
  49. repositories. Occasionally package integration can break when upgrading packages.
  50. This can be avoided by pinning packages to stable versions in other repositories.
  51. To do so, copy `prelude-pinned-packages.el` from the sample directory to
  52. Prelude's root directory and adjust the [variables](https://www.gnu.org/software/emacs/manual/html_node/emacs/Package-Installation.html)
  53. inside accordingly.
  54. ## Enabling additional modules
  55. By default most of the modules that ship with Prelude are not loaded. For more information on the functionality provided by these modules visit the [docs](modules/index.md).
  56. ```lisp
  57. ;;; Uncomment the modules you'd like to use and restart Prelude afterwards
  58. (require 'prelude-c)
  59. ;; (require 'prelude-clojure)
  60. ;; (require 'prelude-coffee)
  61. ;; (require 'prelude-common-lisp)
  62. ;; (require 'prelude-css)
  63. (require 'prelude-emacs-lisp)
  64. (require 'prelude-erc)
  65. ;; (require 'prelude-erlang)
  66. ;; (require 'prelude-elixir)
  67. ;; (require 'prelude-haskell)
  68. (require 'prelude-js)
  69. ;; (require 'prelude-latex)
  70. (require 'prelude-lisp)
  71. (require 'prelude-org)
  72. (require 'prelude-perl)
  73. ;; (require 'prelude-python)
  74. ;; (require 'prelude-ruby)
  75. ;; (require 'prelude-scala)
  76. (require 'prelude-scheme)
  77. ;; (require 'prelude-scss)
  78. ;; (require 'prelude-web)
  79. (require 'prelude-xml)
  80. ```
  81. You'll need to adjust your `prelude-modules.el` file once the installation is done.
  82. In case of an automated installation, you'll find this file in the `personal` directory of your Emacs installation.
  83. If you are doing a manual install then you first
  84. need to copy the `prelude-modules.el` available in the sample
  85. directory to the root of `path/to/prelude/installation` and then
  86. adjust that one.
  87. After you've uncommented a module you should either restart Emacs or evaluate the module
  88. `require` expression with <kbd>C-x C-e</kbd>.