Skip to content

Instantly share code, notes, and snippets.

@jfbu
Created January 1, 2019 11:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfbu/422ed9322492ced7a932079fc462e302 to your computer and use it in GitHub Desktop.
Save jfbu/422ed9322492ced7a932079fc462e302 to your computer and use it in GitHub Desktop.
extract of a configuration file for emacs
(defun jfbu/emacs-lisp-mode-hook ()
(electric-indent-mode 0) ; Arrrggh! 29 novembre 2014
(setq comment-add 0) ; un seul!
(define-key emacs-lisp-mode-map "\C-c;" 'comment-region);
(define-key emacs-lisp-mode-map "\C-c:" 'uncomment-region);
; (define-key emacs-lisp-mode-map "\C-c%" 'comment-region);
(define-key emacs-lisp-mode-map "\C-cu" 'uncomment-region);
)
(add-hook 'emacs-lisp-mode-hook #'jfbu/emacs-lisp-mode-hook t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment