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.

103 lines
3.2 KiB

  1. ;;; prelude-custom.el --- Emacs Prelude: Prelude's customizable variables.
  2. ;;
  3. ;; Copyright © 2011-2013 Bozhidar Batsov
  4. ;;
  5. ;; Author: Bozhidar Batsov <bozhidar@batsov.com>
  6. ;; URL: https://github.com/bbatsov/prelude
  7. ;; Version: 1.0.0
  8. ;; Keywords: convenience
  9. ;; This file is not part of GNU Emacs.
  10. ;;; Commentary:
  11. ;; Refinements of the core editing experience in Emacs.
  12. ;;; License:
  13. ;; This program is free software; you can redistribute it and/or
  14. ;; modify it under the terms of the GNU General Public License
  15. ;; as published by the Free Software Foundation; either version 3
  16. ;; of the License, or (at your option) any later version.
  17. ;;
  18. ;; This program is distributed in the hope that it will be useful,
  19. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. ;; GNU General Public License for more details.
  22. ;;
  23. ;; You should have received a copy of the GNU General Public License
  24. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  25. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  26. ;; Boston, MA 02110-1301, USA.
  27. ;;; Code:
  28. ;; customize
  29. (defgroup prelude nil
  30. "Emacs Prelude configuration."
  31. :prefix "prelude-"
  32. :group 'convenience)
  33. (defcustom prelude-auto-save t
  34. "Non-nil values enable Prelude's auto save."
  35. :type 'boolean
  36. :group 'prelude)
  37. (defcustom prelude-guru t
  38. "Non-nil values enable `guru-mode'."
  39. :type 'boolean
  40. :group 'prelude)
  41. (defcustom prelude-whitespace t
  42. "Non-nil values enable Prelude's whitespace visualization."
  43. :type 'boolean
  44. :group 'prelude)
  45. (defcustom prelude-clean-whitespace-on-save t
  46. "Cleanup whitespace from file before it's saved.
  47. Will only occur if `prelude-whitespace' is also enabled."
  48. :type 'boolean
  49. :group 'prelude)
  50. (defcustom prelude-flyspell t
  51. "Non-nil values enable Prelude's flyspell support."
  52. :type 'boolean
  53. :group 'prelude)
  54. (defcustom prelude-user-init-file (expand-file-name "personal/"
  55. user-emacs-directory)
  56. "Path to your personal customization file.
  57. Prelude recommends you only put personal customizations in the
  58. personal folder. This variable allows you to specify a specific
  59. folder as the one that should be visited when running
  60. `prelude-find-user-init-file'. This can be easily set to the desired buffer
  61. in lisp by putting `(setq prelude-user-init-file load-file-name)'
  62. in the desired elisp file."
  63. :type 'string
  64. :group 'prelude)
  65. (defcustom prelude-indent-sensitive-modes
  66. '(conf-mode coffee-mode haml-mode python-mode slim-mode yaml-mode)
  67. "Modes for which auto-indenting is suppressed."
  68. :type 'list
  69. :group 'prelude)
  70. (defcustom prelude-yank-indent-modes '(LaTeX-mode TeX-mode)
  71. "Modes in which to indent regions that are yanked (or yank-popped).
  72. Only modes that don't derive from `prog-mode' should be listed here."
  73. :type 'list
  74. :group 'prelude)
  75. (defcustom prelude-yank-indent-threshold 1000
  76. "Threshold (# chars) over which indentation does not automatically occur."
  77. :type 'number
  78. :group 'prelude)
  79. (defcustom prelude-theme 'zenburn
  80. "The default color theme, change this in your /personal/preload config."
  81. :type 'symbol
  82. :group 'prelude)
  83. (provide 'prelude-custom)
  84. ;;; prelude-custom.el ends here