Emacs: using guess-style for all prog modes

master
Pierre Neidhardt 2014-03-05 10:58:42 +01:00
parent 0173c96ce8
commit 44a65b0130
3 changed files with 7 additions and 3 deletions

View File

@ -112,6 +112,8 @@ Example: to assign some-function to C-i, use
(when (fboundp 'po-find-file-coding-system)
(modify-coding-system-alist 'file "\\.po\\'\\|\\.po\\." 'po-find-file-coding-system))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Third-party tools
(autoload 'guess-style-set-variable "guess-style" nil t)

View File

@ -109,9 +109,12 @@
mode-hook
(lambda ()
(page-number-mode t)
(when (fboundp 'guess-style-guess-all)
(guess-style-guess-all))
;; (setq show-trailing-whitespace t)
(whitespace-mode))))
'(prog-mode-hook lua-mode-hook))
;; WARNING: this can break some configuration files needing whitespaces at the
;; end.
; (add-hook 'before-save-hook 'delete-trailing-whitespace)
@ -147,8 +150,8 @@
browse-url-browser-function 'browse-url-generic)
(define-key my-keys-minor-mode-map (kbd "C-M-u") 'browse-url)
;; Default ispell dictionnay
;; (setq ispell-dictionary "fr")
;; Default ispell dictionnay. If not set, Emacs uses the current locale.
(setq ispell-dictionary "en")
(define-key my-keys-minor-mode-map
(kbd "<f5>")
(lambda () (interactive) (ispell-change-dictionary "en")))

View File

@ -76,7 +76,6 @@ restored."
(lambda ()
(c-set-style "peter")
(cc-set-compiler)
(guess-style-guess-all)
(local-set-key (kbd "<f9>") 'cc-clean)
(local-set-key (kbd "M-TAB") 'semantic-complete-analyze-inline)
(local-set-key (kbd "C-c C-f") 'cc-fori)