chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
da6946a
)
el/dot-emacs.el (apcalc-mode): Use the proper major-mode machinery.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 28 Apr 2016 12:15:33 +0000
(13:15 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 28 Apr 2016 12:18:18 +0000
(13:18 +0100)
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index 6d9e2f073ed5e5e705742edbe91f2b7c2ebf0fef..bb8ccaa0ec5e498d3a2a0b4503cbb2dd2c5f435b 100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-1669,12
+1669,8
@@
(defun mdw-fontify-c-and-c++ ()
;;;--------------------------------------------------------------------------
;;; AP calc mode.
-(defun apcalc-mode ()
- (interactive)
- (c-mode)
- (setq major-mode 'apcalc-mode)
- (setq mode-name "AP Calc")
- (run-hooks 'apcalc-mode-hook))
+(define-derived-mode apcalc-mode c-mode "AP Calc"
+ "Major mode for editing Calc code.")
(defun mdw-fontify-apcalc ()