Skip to content

Instantly share code, notes, and snippets.

@jfbu
Created January 1, 2019 13:01
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/90f1efd401481a35adab0a5528ae5bbb to your computer and use it in GitHub Desktop.
Save jfbu/90f1efd401481a35adab0a5528ae5bbb to your computer and use it in GitHub Desktop.
some emacs customization (rst mode)
(defun jfbu/rst-mode-hook ()
(electric-indent-mode 0) ; Arrrggh! 6 janvier 2015 pour ReST
(define-key rst-mode-map (kbd "TAB") 'indent-for-tab-command)
(setq tab-width 3); à tester à l'usage.
(setq indent-tabs-mode nil) ; 9 janvier, afin de ne jamais avoir
; d'insertion de TABs par auto-fill. OK ÇA MARCHE. et je n'ai pas l'impression
; que ça pertube indent-for-tab-command
)
(add-hook 'rst-mode-hook #'jfbu/rst-mode-hook t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment