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.

107 lines
3.3 KiB

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