Emacs: Lint some code

master
Pierre Neidhardt 2017-05-28 15:24:52 +02:00
parent 1af113aaa7
commit 7a9a9e6c5b
2 changed files with 1 additions and 7 deletions

View File

@ -191,9 +191,6 @@
(global-set-key (kbd "<f11>") 'previous-error)
(global-set-key (kbd "<f12>") 'next-error)
;;; Code browsing: make C-M-e jump to next function instead of the end of the current function.
(define-key mickey-minor-mode-map (kbd "C-M-e") (lambda () (interactive) (beginning-of-defun -1)))
(defadvice desktop-owner (after pry-from-cold-dead-hands activate)
"Don't allow dead emacsen to own the desktop file."
(when (not (emacs-process-p ad-return-value))

View File

@ -120,10 +120,7 @@ restored."
;;; time at the end of the initialization. No big deal since we only set some
;;; variables.
(dolist (hook '(c-mode-hook c++-mode-hook))
(add-hook-and-eval
hook
(lambda ()
(c-set-style "ambrevar"))) ;; We override existing values.
(add-hook-and-eval hook (lambda () (c-set-style "ambrevar"))) ;; We override existing values.
(when (require 'company nil t)
(add-hook-and-eval hook 'company-mode))
(add-hook-and-eval hook 'cc-set-compiler))