diff options
author | Tom Willemsen | 2012-06-17 22:38:43 +0200 |
---|---|---|
committer | Tom Willemsen | 2012-06-17 22:47:40 +0200 |
commit | 933febfeaa9fc9062660d1a1309b2b9c51b028a1 (patch) | |
tree | 618f890e244e009623d15739347de348fb04a326 | |
parent | d547d846c6abfd4acdd442f274f67f6175c75918 (diff) | |
download | dispass.el-933febfeaa9fc9062660d1a1309b2b9c51b028a1.tar.gz dispass.el-933febfeaa9fc9062660d1a1309b2b9c51b028a1.zip |
Add custom group
By using `defgroup' and `defcustom' the variable (and possible later
variables) can be changed through Emacs' extensive customization
interface.
M-x customize-group <RET> dispass <RET>
Will show you the variables that can be changed for dispass.el.
-rw-r--r-- | README.rst | 7 | ||||
-rw-r--r-- | dispass.el | 24 |
2 files changed, 28 insertions, 3 deletions
@@ -43,6 +43,13 @@ file, for example:: *Or* if you have package.el you could use `package-install-file`. +Customization +============================================================================== + +`dispass.el` only offers customization of the `dispass-executable` +variable for the moment. This is the location where the dispass +executable is located. + Usage ============================================================================== @@ -41,6 +41,12 @@ ;; _Or_ if you have package.el you could use `package-install-file'. +;;; Customization: + +;; dispass.el only offers customization of the `dispass-executable' +;; variable for the moment. This is the location where the dispass +;; executable is located. + ;;; Usage: ;; Using dispass.el is simple, once installed. Either call `dispass' @@ -77,11 +83,23 @@ ;; numeric prefix argument. ;; - Add `dispass-executable' which holds the location of the -;; dispass executable script. +;; dispass executable script. It can be changed through the +;; emacs customization interface. + +;; - Add a customization group named dispass, it is found +;; under the "External" group. ;;; Code: -(defvar dispass-executable "dispass" - "The location of the dispass executable") +(defgroup dispass nil + "Customization options for the DisPass wrapper." + :group 'external) + +(defcustom dispass-executable "dispass" + "The location of the dispass executable." + :package-version '(dispass . "0.1a7.3") + :group 'dispass + :type '(string) + :risky t) (defun dispass-process-sentinel (proc status) "Report PROC's status change to STATUS." |