Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
abbc1a7a
Commit
abbc1a7a
authored
Apr 12, 1997
by
Richard M. Stallman
Browse files
Add defgroup's; use defcustom for user vars.
parent
c2c84cd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
73 additions
and
32 deletions
+73
-32
lisp/mail/mh-e.el
lisp/mail/mh-e.el
+73
-32
No files found.
lisp/mail/mh-e.el
View file @
abbc1a7a
;;; mh-e.el --- GNU Emacs interface to the MH mail system
;; Copyright (C) 1985,86,87,88,90,92,93,94,95 Free Software Foundation, Inc.
;; Copyright (C) 1985,86,87,88,90,92,93,94,95
,97
Free Software Foundation, Inc.
;; Maintainer: Stephen Gildea <gildea@lcs.mit.edu>
;; Version: 5.0.2
...
...
@@ -60,7 +60,7 @@
;; Modified by James Larus, BBN, July 1984 and UCB, 1984 & 1985.
;; Rewritten for GNU Emacs, James Larus 1985. larus@ginger.berkeley.edu
;; Modified by Stephen Gildea 1988. gildea@lcs.mit.edu
(
defconst
mh-e-RCS-id
"$Id: mh-e.el,v 1.1
3
1996/0
1
/2
5 01:02:59
kwzh Exp
kwzh
$"
)
(
defconst
mh-e-RCS-id
"$Id: mh-e.el,v 1.1
4
1996/0
5
/2
1 17:26:31
kwzh Exp
rms
$"
)
;;; Code:
...
...
@@ -70,67 +70,108 @@
;;; Hooks:
(
defvar
mh-folder-mode-hook
nil
"Invoked in MH-Folder mode on a new folder."
)
(
defgroup
mh
nil
"Emacs interface to the MH mail system"
:group
'mail
)
(
defvar
mh-inc-folder-hook
nil
"Invoked by \\<mh-folder-mode-map>`\\[mh-inc-folder]' after incorporating mail into a folder."
)
(
defgroup
mh-hook
nil
"Hooks to mh-e mode"
:prefix
"mh-"
:group
'mh
)
(
defvar
mh-show-hook
nil
"Invoked after \\<mh-folder-mode-map>`\\[mh-show]' shows a message."
)
(
defvar
mh-show-mode-hook
nil
"Invoked in MH-Show mode on each message."
)
(
defcustom
mh-folder-mode-hook
nil
"Invoked in MH-Folder mode on a new folder."
:type
'hook
:group
'mh-hook
)
(
defvar
mh-delete-msg-hook
nil
"Invoked after marking each message for deletion."
)
(
defcustom
mh-inc-folder-hook
nil
"Invoked by \\<mh-folder-mode-map>`\\[mh-inc-folder]' after incorporating mail into a folder."
:type
'hook
:group
'mh-hook
)
(
defvar
mh-refile-msg-hook
nil
"Invoked after marking each message for refiling."
)
(
defcustom
mh-show-hook
nil
"Invoked after \\<mh-folder-mode-map>`\\[mh-show]' shows a message."
:type
'hook
:group
'mh-hook
)
(
defvar
mh-before-quit-hook
nil
"Invoked by \\<mh-folder-mode-map>`\\[mh-quit]' before quitting mh-e. See also mh-quit-hook."
)
(
defcustom
mh-show-mode-hook
nil
"Invoked in MH-Show mode on each message."
:type
'hook
:group
'mh-hook
)
(
defvar
mh-quit-hook
nil
"Invoked after \\<mh-folder-mode-map>`\\[mh-quit]' quits mh-e. See also mh-before-quit-hook."
)
(
defcustom
mh-delete-msg-hook
nil
"Invoked after marking each message for deletion."
:type
'hook
:group
'mh-hook
)
(
defcustom
mh-refile-msg-hook
nil
"Invoked after marking each message for refiling."
:type
'hook
:group
'mh-hook
)
(
defcustom
mh-before-quit-hook
nil
"Invoked by \\<mh-folder-mode-map>`\\[mh-quit]' before quitting mh-e. See also mh-quit-hook."
:type
'hook
:group
'mh-hook
)
(
defcustom
mh-quit-hook
nil
"Invoked after \\<mh-folder-mode-map>`\\[mh-quit]' quits mh-e. See also mh-before-quit-hook."
:type
'hook
:group
'mh-hook
)
;;; Personal preferences:
(
def
var
mh-lpr-command-format
"lpr -J '%s'"
(
def
custom
mh-lpr-command-format
"lpr -J '%s'"
"*Format for Unix command that prints a message.
The string should be a Unix command line, with the string '%s' where
the job's name (folder and message number) should appear. The formatted
message text is piped to this command when you type \\<mh-folder-mode-map>`\\[mh-print-msg]'."
)
message text is piped to this command when you type \\<mh-folder-mode-map>`\\[mh-print-msg]'."
:type
'string
:group
'mh
)
(
def
var
mh-scan-prog
"scan"
(
def
custom
mh-scan-prog
"scan"
"*Program to run to generate one-line-per-message listing of a folder.
Normally \"scan\" or a file name linked to scan. This file is searched
for relative to the mh-progs directory unless it is an absolute pathname.
Automatically becomes buffer-local when set in any fashion."
)
Automatically becomes buffer-local when set in any fashion."
:type
'string
:group
'mh
)
(
make-variable-buffer-local
'mh-scan-prog
)
(
def
var
mh-inc-prog
"inc"
(
def
custom
mh-inc-prog
"inc"
"*Program to run to incorporate new mail into a folder.
Normally \"inc\". This file is searched for relative to
the mh-progs directory unless it is an absolute pathname."
)
the mh-progs directory unless it is an absolute pathname."
:type
'string
:group
'mh
)
(
def
var
mh-print-background
nil
(
def
custom
mh-print-background
nil
"*Print messages in the background if non-nil.
WARNING: do not delete the messages until printing is finished;
otherwise, your output may be truncated."
)
otherwise, your output may be truncated."
:type
'boolean
:group
'mh
)
(
defvar
mh-recenter-summary-p
nil
"*Recenter summary window when the show window is toggled off if non-nil."
)
(
defcustom
mh-recenter-summary-p
nil
"*Recenter summary window when the show window is toggled off if non-nil."
:type
'boolean
:group
'mh
)
(
def
var
mh-do-not-confirm
nil
(
def
custom
mh-do-not-confirm
nil
"*Non-nil means do not prompt for confirmation before some mh-e commands.
Affects non-recoverable commands such as mh-kill-folder and mh-undo-folder."
)
Affects non-recoverable commands such as mh-kill-folder and mh-undo-folder."
:type
'boolean
:group
'mh
)
(
def
var
mh-store-default-directory
nil
(
def
custom
mh-store-default-directory
nil
"*Last directory used by \\[mh-store-msg]; default for next store.
A directory name string, or nil to use current directory."
)
A directory name string, or nil to use current directory."
:type
'
(
choice
(
const
:tag
"Current"
nil
)
directory
)
:group
'mh
)
;;; Parameterize mh-e to work with different scan formats. The defaults work
;;; with the standard MH scan listings, in which the first 4 characters on
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment