From: Mark Wooding Date: Thu, 28 Apr 2016 12:15:33 +0000 (+0100) Subject: el/dot-emacs.el (apcalc-mode): Use the proper major-mode machinery. X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/e7186cbee63e87bc3d0f041f136ce101efbc5c26 el/dot-emacs.el (apcalc-mode): Use the proper major-mode machinery. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 6d9e2f0..bb8ccaa 100644 --- 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 ()