aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-12-05 06:59:48 +0000
committerGlenn Morris2007-12-05 06:59:48 +0000
commit784aa37620f6e9ce4f89198935f55ff3861a528b (patch)
tree085229edc82a9f57ceae34d9547a9e9ad257003f
parent700645db69fb28ad38fe3080e2ee45f4630b8759 (diff)
downloademacs-784aa37620f6e9ce4f89198935f55ff3861a528b.tar.gz
emacs-784aa37620f6e9ce4f89198935f55ff3861a528b.zip
Require individual files if needed when compiling, rather than
esh-maint. Collect any require statements. Move provide statement to end. Move any commentary to start.
-rw-r--r--lisp/eshell/em-banner.el35
1 files changed, 19 insertions, 16 deletions
diff --git a/lisp/eshell/em-banner.el b/lisp/eshell/em-banner.el
index 17d930a055d..b9642f41df6 100644
--- a/lisp/eshell/em-banner.el
+++ b/lisp/eshell/em-banner.el
@@ -22,18 +22,6 @@
22;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 22;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23;; Boston, MA 02110-1301, USA. 23;; Boston, MA 02110-1301, USA.
24 24
25(provide 'em-banner)
26
27(eval-when-compile (require 'esh-maint))
28
29(defgroup eshell-banner nil
30 "This sample module displays a welcome banner at login.
31It exists so that others wishing to create their own Eshell extension
32modules may have a simple template to begin with."
33 :tag "Login banner"
34 ;; :link '(info-link "(eshell)Login banner")
35 :group 'eshell-module)
36
37;;; Commentary: 25;;; Commentary:
38 26
39;; There is nothing to be done or configured in order to use this 27;; There is nothing to be done or configured in order to use this
@@ -51,6 +39,23 @@ modules may have a simple template to begin with."
51;; In this case, it allows the user to change the string which 39;; In this case, it allows the user to change the string which
52;; displays at login time. 40;; displays at login time.
53 41
42;;; Code:
43
44(eval-when-compile
45 (require 'cl)
46 (require 'esh-mode)
47 (require 'eshell))
48
49(require 'esh-util)
50
51(defgroup eshell-banner nil
52 "This sample module displays a welcome banner at login.
53It exists so that others wishing to create their own Eshell extension
54modules may have a simple template to begin with."
55 :tag "Login banner"
56 ;; :link '(info-link "(eshell)Login banner")
57 :group 'eshell-module)
58
54;;; User Variables: 59;;; User Variables:
55 60
56(defcustom eshell-banner-message "Welcome to the Emacs shell\n\n" 61(defcustom eshell-banner-message "Welcome to the Emacs shell\n\n"
@@ -61,10 +66,6 @@ This can be any sexp, and should end with at least two newlines."
61 66
62(put 'eshell-banner-message 'risky-local-variable t) 67(put 'eshell-banner-message 'risky-local-variable t)
63 68
64;;; Code:
65
66(require 'esh-util)
67
68(defcustom eshell-banner-load-hook '(eshell-banner-initialize) 69(defcustom eshell-banner-load-hook '(eshell-banner-initialize)
69 "*A list of functions to run when `eshell-banner' is loaded." 70 "*A list of functions to run when `eshell-banner' is loaded."
70 :type 'hook 71 :type 'hook
@@ -90,5 +91,7 @@ This can be any sexp, and should end with at least two newlines."
90 (goto-char (point-min)) 91 (goto-char (point-min))
91 (looking-at msg))) 92 (looking-at msg)))
92 93
94(provide 'em-banner)
95
93;;; arch-tag: e738b4ef-8671-42ae-a757-291779b92491 96;;; arch-tag: e738b4ef-8671-42ae-a757-291779b92491
94;;; em-banner.el ends here 97;;; em-banner.el ends here