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.

122 lines
3.8 KiB

  1. ;;; prelude-custom.el --- Emacs Prelude: Prelude's customizable variables.
  2. ;;
  3. ;; Copyright © 2011-2022 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-minimalistic-ui nil
  32. "Controls whether to display the menu-bar and line numbers.
  33. Note that the toolbar is always hidden regardless of this setting."
  34. :type 'boolean
  35. :group 'prelude
  36. :package-version '(prelude . "1.1"))
  37. (defcustom prelude-super-keybindings t
  38. "Controls whether to use the Super key in keybindings.
  39. They can be problematic in some operating systems (e.g. Windows)
  40. or desktop environments that make heavy use of them."
  41. :type 'boolean
  42. :group 'prelude
  43. :package-version '(prelude . "1.1"))
  44. (defcustom prelude-auto-save t
  45. "Non-nil values enable Prelude's auto save."
  46. :type 'boolean
  47. :group 'prelude)
  48. (defcustom prelude-guru t
  49. "Non-nil values enable `guru-mode'."
  50. :type 'boolean
  51. :group 'prelude)
  52. (defcustom prelude-whitespace t
  53. "Non-nil values enable Prelude's whitespace visualization."
  54. :type 'boolean
  55. :group 'prelude)
  56. (defcustom prelude-clean-whitespace-on-save t
  57. "Cleanup whitespace from file before it's saved.
  58. Will only occur if `prelude-whitespace' is also enabled."
  59. :type 'boolean
  60. :group 'prelude)
  61. (defcustom prelude-flyspell t
  62. "Non-nil values enable Prelude's flyspell support."
  63. :type 'boolean
  64. :group 'prelude)
  65. (defcustom prelude-user-init-file (expand-file-name "personal/"
  66. user-emacs-directory)
  67. "Path to your personal customization file.
  68. Prelude recommends you only put personal customizations in the
  69. personal folder. This variable allows you to specify a specific
  70. folder as the one that should be visited when running
  71. `crux-find-user-init-file'. This can be easily set to the desired buffer
  72. in Lisp by putting `(setq prelude-user-init-file load-file-name)'
  73. in the desired elisp file."
  74. :type 'string
  75. :group 'prelude)
  76. (defcustom prelude-indent-sensitive-modes
  77. '(conf-mode coffee-mode haml-mode python-mode slim-mode yaml-mode)
  78. "Modes for which auto-indenting is suppressed."
  79. :type 'list
  80. :group 'prelude)
  81. (defcustom prelude-format-on-save t
  82. "Run mode specific format on file before it's saved.
  83. Currently only applies to tide-mode."
  84. :type 'boolean
  85. :group 'prelude)
  86. (defcustom prelude-yank-indent-modes '(LaTeX-mode TeX-mode)
  87. "Modes in which to indent regions that are yanked (or yank-popped).
  88. Only modes that don't derive from `prog-mode' should be listed here."
  89. :type 'list
  90. :group 'prelude)
  91. (defcustom prelude-yank-indent-threshold 1000
  92. "Threshold (# chars) over which indentation does not automatically occur."
  93. :type 'number
  94. :group 'prelude)
  95. (defcustom prelude-theme 'zenburn
  96. "The default color theme, change this in your /personal/preload config."
  97. :type 'symbol
  98. :group 'prelude)
  99. (provide 'prelude-custom)
  100. ;;; prelude-custom.el ends here