Move setting to separate settings file
Originally, I placed this in the same file as evil-collection but was running into problems byte compiling cleanly. Instead of figuring out how to work around it, I am creating a separate settings file to add defcustoms lower level modules can consume. Ideally I can put this setting into the same evil-collection file and have the the project byte compile cleanly. I am leaving that problem for another day.
This commit is contained in:
parent
a37e87dd21
commit
885814f9d5
|
@ -27,7 +27,7 @@
|
|||
;;; Bindings for `indium'.
|
||||
|
||||
;;; Code:
|
||||
(require 'evil-collection)
|
||||
(require 'evil-collection-settings)
|
||||
(require 'indium nil t)
|
||||
|
||||
(defun evil-collection-indium-setup ()
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
;;; evil-collection-settings.el --- Settings for `evil-collection'. -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (C) 2017 James Nguyen
|
||||
|
||||
;; Author: James Nguyen <james@jojojames.com>
|
||||
;; Maintainer: James Nguyen <james@jojojames.com>
|
||||
;; Pierre Neidhardt <ambrevar@gmail.com>
|
||||
;; URL: https://github.com/jojojames/evil-collection
|
||||
;; Version: 0.0.1
|
||||
;; Package-Requires: ((emacs "25.1"))
|
||||
;; Keywords: evil, emacs, tools
|
||||
|
||||
;; 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 this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
;;; Commentary:
|
||||
;;; Settings for `evil-collection'.
|
||||
(require 'evil)
|
||||
|
||||
;;; Code:
|
||||
(defcustom evil-collection-setup-debugger-keys t
|
||||
"Whether to bind debugger keys when debugger is active.
|
||||
|
||||
Debugger in this case is dependent on mode.
|
||||
|
||||
This is only relevant for debug modes that are part of another mode,
|
||||
|
||||
e.g. `indium'. Modes like `edebug' or `realgud' needs to be explicitly disabled
|
||||
|
||||
through removing their entry from `evil-collection-mode-list'."
|
||||
:type 'boolean
|
||||
:group 'evil-collection)
|
||||
|
||||
(provide 'evil-collection-settings)
|
||||
;;; evil-collection-settings.el ends here
|
|
@ -56,19 +56,6 @@ or evil-collection.")
|
|||
:type 'boolean
|
||||
:group 'evil-collection)
|
||||
|
||||
(defcustom evil-collection-setup-debugger-keys t
|
||||
"Whether to bind debugger keys when debugger is active.
|
||||
|
||||
Debugger in this case is dependent on mode.
|
||||
|
||||
This is only relevant for debug modes that are part of another mode,
|
||||
|
||||
e.g. `indium'. Modes like `edebug' or `realgud' needs to be explicitly disabled
|
||||
|
||||
through removing their entry from `evil-collection-mode-list'."
|
||||
:type 'boolean
|
||||
:group 'evil-collection)
|
||||
|
||||
(defcustom evil-collection-mode-list
|
||||
`(ag
|
||||
alchemist
|
||||
|
|
Loading…
Reference in New Issue