2014-05-12 02:59:28 +03:00
|
|
|
;;; prelude-custom.el --- Emacs Prelude: Prelude's customizable variables.
|
|
|
|
;;
|
2014-12-07 11:37:46 +02:00
|
|
|
;; Copyright © 2011-2014 Bozhidar Batsov
|
2014-05-12 02:59:28 +03:00
|
|
|
;;
|
|
|
|
;; Author: Bozhidar Batsov <bozhidar@batsov.com>
|
|
|
|
;; URL: https://github.com/bbatsov/prelude
|
|
|
|
;; Version: 1.0.0
|
|
|
|
;; Keywords: convenience
|
|
|
|
|
|
|
|
;; This file is not part of GNU Emacs.
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;; Refinements of the core editing experience in Emacs.
|
|
|
|
|
|
|
|
;;; License:
|
|
|
|
|
|
|
|
;; This program is free software; you can redistribute it and/or
|
|
|
|
;; modify it under the terms of the GNU General Public License
|
|
|
|
;; as published by the Free Software Foundation; either version 3
|
|
|
|
;; of the License, or (at your option) any later version.
|
|
|
|
;;
|
|
|
|
;; This program is distributed in the hope that it will be useful,
|
|
|
|
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;; GNU General Public License for more details.
|
|
|
|
;;
|
|
|
|
;; You should have received a copy of the GNU General Public License
|
|
|
|
;; along with GNU Emacs; see the file COPYING. If not, write to the
|
|
|
|
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
;; Boston, MA 02110-1301, USA.
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
;; customize
|
|
|
|
(defgroup prelude nil
|
|
|
|
"Emacs Prelude configuration."
|
|
|
|
:prefix "prelude-"
|
|
|
|
:group 'convenience)
|
|
|
|
|
|
|
|
(defcustom prelude-auto-save t
|
|
|
|
"Non-nil values enable Prelude's auto save."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'prelude)
|
|
|
|
|
|
|
|
(defcustom prelude-guru t
|
2014-05-12 03:09:24 +03:00
|
|
|
"Non-nil values enable `guru-mode'."
|
2014-05-12 02:59:28 +03:00
|
|
|
:type 'boolean
|
|
|
|
:group 'prelude)
|
|
|
|
|
|
|
|
(defcustom prelude-whitespace t
|
|
|
|
"Non-nil values enable Prelude's whitespace visualization."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'prelude)
|
|
|
|
|
|
|
|
(defcustom prelude-clean-whitespace-on-save t
|
|
|
|
"Cleanup whitespace from file before it's saved.
|
2014-05-12 03:09:24 +03:00
|
|
|
Will only occur if `prelude-whitespace' is also enabled."
|
2014-05-12 02:59:28 +03:00
|
|
|
:type 'boolean
|
|
|
|
:group 'prelude)
|
|
|
|
|
|
|
|
(defcustom prelude-flyspell t
|
|
|
|
"Non-nil values enable Prelude's flyspell support."
|
|
|
|
:type 'boolean
|
|
|
|
:group 'prelude)
|
|
|
|
|
2014-05-15 23:43:51 +03:00
|
|
|
(defcustom prelude-user-init-file (expand-file-name "personal/"
|
|
|
|
user-emacs-directory)
|
2014-05-12 03:01:38 +03:00
|
|
|
"Path to your personal customization file.
|
2014-05-15 05:50:01 +03:00
|
|
|
Prelude recommends you only put personal customizations in the
|
|
|
|
personal folder. This variable allows you to specify a specific
|
|
|
|
folder as the one that should be visited when running
|
|
|
|
`prelude-find-user-init-file'. This can be easily set to the desired buffer
|
2014-05-16 09:16:53 +03:00
|
|
|
in lisp by putting `(setq prelude-user-init-file load-file-name)'
|
2014-05-15 05:50:01 +03:00
|
|
|
in the desired elisp file."
|
2014-05-12 03:01:38 +03:00
|
|
|
:type 'string
|
|
|
|
:group 'prelude)
|
|
|
|
|
2014-06-25 05:03:15 +03:00
|
|
|
(defcustom prelude-indent-sensitive-modes
|
2014-09-04 17:19:01 +03:00
|
|
|
'(conf-mode coffee-mode haml-mode python-mode slim-mode yaml-mode)
|
2014-06-25 05:03:15 +03:00
|
|
|
"Modes for which auto-indenting is suppressed."
|
|
|
|
:type 'list
|
|
|
|
:group 'prelude)
|
|
|
|
|
|
|
|
(defcustom prelude-yank-indent-modes '(LaTeX-mode TeX-mode)
|
|
|
|
"Modes in which to indent regions that are yanked (or yank-popped).
|
|
|
|
Only modes that don't derive from `prog-mode' should be listed here."
|
|
|
|
:type 'list
|
|
|
|
:group 'prelude)
|
|
|
|
|
|
|
|
(defcustom prelude-yank-indent-threshold 1000
|
|
|
|
"Threshold (# chars) over which indentation does not automatically occur."
|
|
|
|
:type 'number
|
|
|
|
:group 'prelude)
|
|
|
|
|
2014-10-11 06:56:40 +03:00
|
|
|
(defcustom prelude-theme 'zenburn
|
|
|
|
"The default color theme, change this in your /personal/preload config."
|
|
|
|
:type 'symbol
|
|
|
|
:group 'prelude)
|
|
|
|
|
2014-05-12 02:59:28 +03:00
|
|
|
(provide 'prelude-custom)
|
|
|
|
|
|
|
|
;;; prelude-custom.el ends here
|