X-Git-Url: https://git.distorted.org.uk/~mdw/profile/blobdiff_plain/1e7a9479476de03b7d9e5a31099716999bc3c239..506bada965ae0c559cb2e9c9dbff460c782f391f:/el/dot-emacs.el diff --git a/el/dot-emacs.el b/el/dot-emacs.el index b7a1cc2..e843110 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -48,6 +48,8 @@ This may be at the expense of cool features.") (defmacro mdw-regexps (&rest list) "Turn a LIST of strings into a single regular expression at compile-time." + (declare (indent nil) + (debug 0)) `',(make-regexp list)) ;; Some error trapping. @@ -57,6 +59,8 @@ This may be at the expense of cool features.") (defmacro trap (&rest forms) "Execute FORMS without allowing errors to propagate outside." + (declare (indent 0) + (debug t)) `(condition-case err ,(if (cdr forms) (cons 'progn forms) (car forms)) (error (message "Error (trapped): %s in %s" @@ -229,7 +233,7 @@ Evil key bindings are defined in `mdw-evil-keymap-keys'." (dolist (key replacements) (define-key keymap key binding)))))) -(eval-after-load "org" +(eval-after-load "org-latex" '(progn (push '("strayman" "\\documentclass{strayman} @@ -646,11 +650,18 @@ case." (gtags-mode)) (outline-minor-mode t) (hs-minor-mode t) + (reveal-mode t) (trap (turn-on-font-lock))) (eval-after-load 'gtags - '(dolist (key '([mouse-2] [mouse-3])) - (define-key gtags-mode-map key nil))) + '(progn + (dolist (key '([mouse-2] [mouse-3])) + (define-key gtags-mode-map key nil)) + (define-key gtags-mode-map [C-S-mouse-2] 'gtags-find-tag-by-event) + (define-key gtags-select-mode-map [C-S-mouse-2] + 'gtags-select-tag-by-event) + (dolist (map (list gtags-mode-map gtags-select-mode-map)) + (define-key map [C-S-mouse-3] 'gtags-pop-stack)))) ;; Backup file handling. @@ -684,7 +695,7 @@ doesn't match any of the regular expressions in (make-face ',name) (defvar ,name ',name) (put ',name 'face-defface-spec ',body) - )) + (face-spec-set ',name ',body nil))) (mdw-define-face default (((type w32)) :family "courier new" :height 85) @@ -694,6 +705,11 @@ doesn't match any of the regular expressions in (((type w32)) :family "courier new" :height 85) (((type x)) :family "6x13" :height 130) (t :foreground "white" :background "black")) +(if (>= emacs-major-version 23) + (mdw-define-face variable-pitch + (((type x)) :family "sans" :height 100)) + (mdw-define-face variable-pitch + (((type x)) :family "helvetica" :height 120))) (mdw-define-face region (((type tty)) :background "blue") (t :background "grey30")) (mdw-define-face minibuffer-prompt @@ -708,9 +724,9 @@ doesn't match any of the regular expressions in (t :foreground "black" :background "lightgrey")) (mdw-define-face fringe (t :foreground "yellow")) -(mdw-define-face show-paren-match-face +(mdw-define-face show-paren-match (t :background "darkgreen")) -(mdw-define-face show-paren-mismatch-face +(mdw-define-face show-paren-mismatch (t :background "red")) (mdw-define-face highlight (t :background "DarkSeaGreen4")) @@ -732,7 +748,7 @@ doesn't match any of the regular expressions in (mdw-define-face mdw-number-face (t :foreground "yellow")) (mdw-define-face font-lock-function-name-face - (t :weight bold)) + (t :slant italic)) (mdw-define-face font-lock-keyword-face (t :weight bold)) (mdw-define-face font-lock-constant-face