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.

94 lines
3.1 KiB

  1. ;;; init.el --- Emacs Prelude: configuration entry point.
  2. ;;
  3. ;; Copyright (c) 2011 Bozhidar Batsov
  4. ;;
  5. ;; Author: Bozhidar Batsov <bozhidar.batsov@gmail.com>
  6. ;; URL: http://www.emacswiki.org/cgi-bin/wiki/Prelude
  7. ;; Version: 1.0.0
  8. ;; Keywords: convenience
  9. ;; This file is not part of GNU Emacs.
  10. ;;; Commentary:
  11. ;; This file simply sets up the default load path and requires
  12. ;; the various modules defined within Emacs Prelude.
  13. ;;; License:
  14. ;; This program is free software; you can redistribute it and/or
  15. ;; modify it under the terms of the GNU General Public License
  16. ;; as published by the Free Software Foundation; either version 3
  17. ;; of the License, or (at your option) any later version.
  18. ;;
  19. ;; This program is distributed in the hope that it will be useful,
  20. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  21. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  22. ;; GNU General Public License for more details.
  23. ;;
  24. ;; You should have received a copy of the GNU General Public License
  25. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  26. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  27. ;; Boston, MA 02110-1301, USA.
  28. ;;; Code:
  29. (defgroup prelude nil
  30. "Emacs Prelude"
  31. :group 'convenience)
  32. ;; On OS X Emacs doesn't use the shell PATH if it's not started from
  33. ;; the shell. If you're using homebrew modifying the PATH is essential.
  34. (if (eq system-type 'darwin)
  35. (push "/usr/local/bin" exec-path))
  36. (defvar prelude-dir (file-name-directory load-file-name)
  37. "The root dir of the Emacs Prelude distribution.")
  38. (defvar prelude-modules-dir (concat prelude-dir "modules/")
  39. "This directory houses all of the built-in Prelude module. You should
  40. avoid modifying the configuration there.")
  41. (defvar prelude-vendor-dir (concat prelude-dir "vendor/")
  42. "This directory house Emacs Lisp packages that are not yet available in
  43. ELPA (or Marmalade).")
  44. (defvar prelude-personal-dir (concat prelude-dir "personal/")
  45. "Users of Emacs Prelude are encouraged to keep their personal configuration
  46. changes in this directory. All Emacs Lisp files there are loaded automatically
  47. by Prelude.")
  48. (add-to-list 'load-path prelude-modules-dir)
  49. (add-to-list 'load-path prelude-vendor-dir)
  50. (add-to-list 'load-path prelude-personal-dir)
  51. ;; config changes made through the customize UI will be store here
  52. (setq custom-file (concat prelude-personal-dir "custom.el"))
  53. (load custom-file 'noerror)
  54. ;; the core stuff
  55. (require 'prelude-ui)
  56. (require 'prelude-packages)
  57. (require 'prelude-core)
  58. (require 'prelude-editor)
  59. (require 'prelude-global-keybindings)
  60. ;; programming & markup languages support
  61. (require 'prelude-c)
  62. (require 'prelude-clojure)
  63. (require 'prelude-coffee)
  64. (require 'prelude-common-lisp)
  65. (require 'prelude-emacs-lisp)
  66. (require 'prelude-erc)
  67. (require 'prelude-haskell)
  68. (require 'prelude-js)
  69. (require 'prelude-latex)
  70. (require 'prelude-markdown)
  71. (require 'prelude-perl)
  72. (require 'prelude-python)
  73. (require 'prelude-ruby)
  74. (require 'prelude-scheme)
  75. (require 'prelude-xml)
  76. ;; load the personal settings
  77. (when (file-exists-p prelude-personal-dir)
  78. (mapc 'load (directory-files prelude-personal-dir nil "^[^#].*el$")))
  79. ;;; init.el ends here