Add flyckeck to prog mode

This commit is contained in:
Maciej Szlosarczyk 2017-08-26 01:21:33 +03:00
parent 58b79e0a74
commit 1426dfecd7
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
3 changed files with 4 additions and 1 deletions

View file

@ -163,6 +163,7 @@
;; Show projectile lists by most recently active ;; Show projectile lists by most recently active
(setq projectile-sort-order (quote recently-active)) (setq projectile-sort-order (quote recently-active))
(add-hook 'projectile-after-switch-project-hook 'magit-status)
;; (add-hook 'projectile-find-file-hook 'projectile-invalidate-cache) ;; (add-hook 'projectile-find-file-hook 'projectile-invalidate-cache)

View file

@ -6,9 +6,10 @@
;; Disable meta on right alt (useful for Polish characters) ;; Disable meta on right alt (useful for Polish characters)
(setq ns-right-alternate-modifier nil) (setq ns-right-alternate-modifier nil)
(require 'ispell)
;; Highlight misspelled words ;; Highlight misspelled words
(setq ispell-program-name "aspell") (setq ispell-program-name "aspell")
(flyspell-mode 1) (add-hook 'prog-mode-hook 'flyspell-mode)
(provide 'spelling) (provide 'spelling)
;;; spelling.el ends here ;;; spelling.el ends here

View file

@ -12,6 +12,7 @@
(add-to-list 'purpose-user-regexp-purposes '("_spec.rb\\(<.*>\\)?$" . test)) (add-to-list 'purpose-user-regexp-purposes '("_spec.rb\\(<.*>\\)?$" . test))
(add-to-list 'purpose-user-regexp-purposes '("_test.exs\\(<.*>\\)?$" . test)) (add-to-list 'purpose-user-regexp-purposes '("_test.exs\\(<.*>\\)?$" . test))
(add-to-list 'purpose-user-mode-purposes '(shell-mode . test)) (add-to-list 'purpose-user-mode-purposes '(shell-mode . test))
(add-to-list 'purpose-user-mode-purposes '(magit-diff-mode . test))
;; Enumarate through all stuff. ;; Enumarate through all stuff.
(add-to-list 'purpose-user-regexp-purposes (add-to-list 'purpose-user-regexp-purposes