doomemacs/core/core-vars.el

63 lines
2.9 KiB
EmacsLisp
Raw Normal View History

2015-06-06 18:40:33 +08:00
;;; core-vars.el --- narf emacs configuration
(defgroup narf nil
"Narf variables."
:group 'convenience
:prefix 'narf-)
;; TODO Make these defcustom's
(defvar narf-leader-prefix "," "Prefix key for <leader> maps")
(defvar narf-localleader-prefix "\\" "Prefix key for <localleader> maps")
2015-06-06 18:40:33 +08:00
;; Buffers/Files ;;;;;;;;;;;;;;;;;;;;;;;
2015-07-26 19:14:31 +08:00
(defvar narf-unreal-buffers '("^ ?\\*.+\\*"
2015-06-15 15:05:52 +08:00
image-mode
dired-mode
reb-mode
messages-buffer-mode)
"A list of regexps or modes whose buffers are considered unreal, and will be
ignored when using `narf:next-real-buffer' and `narf:previous-real-buffer', and
2015-12-23 16:42:47 +08:00
killed by `narf/kill-unreal-buffers'.
2015-06-15 15:05:52 +08:00
`narf:kill-this-buffer' will also gloss over these buffers when finding a new
buffer to display.")
2015-06-06 18:40:33 +08:00
(defvar narf-ignore-buffers '("*Completions*" "*Compile-Log*" "*inferior-lisp*"
"*Fuzzy Completions*" "*Apropos*" "*Help*" "*cvs*"
2015-06-15 15:05:52 +08:00
"*Buffer List*" "*Ibuffer*" "*esh command on file*"
2015-11-27 16:38:11 +08:00
"*WoMan-Log*" "*compilation*" "*use-package*"
"*quickrun*" "*eclim: problems*" "*Flycheck errors*"
"*popwin-dummy*" " *NeoTree*"
2015-11-27 16:38:11 +08:00
;; Helm
"*helm*" "*helm recentf*" "*helm projectile*" "*helm imenu*"
"*helm company*" "*helm buffers*" "*Helm Css SCSS*"
"*helm-ag*" "*helm-ag-edit*" "*Helm Swoop*"
"*helm M-x*" "*helm mini*" "*Helm Completions*"
"*Helm Find Files*" "*helm mu*" "*helm mu contacts*"
"*helm-mode-describe-variable*" "*helm-mode-describe-function*"
;; Org
"*Org todo*" "*Org Links*" "*Agenda Commands*"
)
2015-06-15 15:05:52 +08:00
"List of buffer names to ignore when using `winner-undo', or `winner-redo'")
2015-06-06 18:40:33 +08:00
2015-06-15 15:05:52 +08:00
(defvar narf-cleanup-processes-alist '(("pry" . ruby-mode)
("irb" . ruby-mode)
("ipython" . python-mode))
"An alist of (process-name . major-mode), that `narf:cleanup-processes' checks
before killing processes. If there are no buffers with matching major-modes, it
gets killed.")
2015-06-06 18:40:33 +08:00
(defvar narf-project-root-files
'(".git" ".hg" ".svn" ".project" "local.properties" "project.properties"
"rebar.config" "project.clj" "SConstruct" "pom.xml" "build.sbt"
"build.gradle" "Gemfile" "requirements.txt" "tox.ini" "package.json"
"gulpfile.js" "Gruntfile.js" "bower.json" "composer.json" "Cargo.toml"
"mix.exs")
"A list of files that count as 'project files', which determine whether a
folder is the root of a project or not.")
(provide 'core-vars)
;;; core-vars.el ends here