Add Elixir and ispell configuration

This commit is contained in:
Maciej 2018-09-09 01:01:00 +03:00
parent 648a192b64
commit 58462d2961
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
5 changed files with 21 additions and 12 deletions

View file

@ -24,18 +24,11 @@
company-yasnippet
)
company-elisp ; Emacs Lisp
;; company-semantic ; C/C++
(company-clang company-cmake) ; C/C++
company-robe
;; company-eclim ; Java
;; company-ropemacs ; Python
company-nxml company-css ; HTML, CSS, XML
;; company-xcode ; for Xcode projects
company-bbdb ; BBDB
(company-dabbrev-code company-dabbrev company-abbrev) ; abbrev
company-robe ;; Ruby
alchemist-company ;; Elixir
(company-dabbrev-code company-dabbrev company-abbrev) ;; abbrev
company-files ; files & directory
company-ispell ; Ispell
;; company-oddmuse ; wiki
))
(global-company-mode 1)

View file

@ -60,7 +60,8 @@
(add-to-list 'purpose-user-mode-purposes '(dired-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(magit-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(help-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(helm-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(ivy-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(counsel-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(compilation-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(etags-select-mode . tools))
(add-to-list 'purpose-user-mode-purposes '(reb-mode . tools)) ;; Regexp builder

6
09ispell.el Normal file
View file

@ -0,0 +1,6 @@
(require 'ispell)
;; Highlight misspelled words
(setq ispell-program-name "aspell")
(setq ispell-extra-args
'("--run-together" "--run-together-limit=5" "--run-together-min=2"))
(add-hook 'prog-mode-hook 'flyspell-mode)

5
20elixir.el Normal file
View file

@ -0,0 +1,5 @@
(add-hook 'elixir-mode 'alchemist-mode)
(add-hook 'elixir-mode 'ruby-end-mode)
(eval-after-load 'company
'(push 'alchemist-company company-backends))

View file

@ -59,6 +59,9 @@
rvm ;; Support rvm usage
ruby-end ;; Insert end for methods automatically
;; Elixir
alchemist
;; Web
web-mode
@ -84,6 +87,7 @@
(load "~/.emacs.d/06company-yasnippet.el")
(load "~/.emacs.d/07projectile.el")
(load "~/.emacs.d/08purpose.el")
(load "~/.emacs.d/09ispell.el")
(load "~/.emacs.d/10themes.el")
;; Actual supported languages
@ -98,7 +102,7 @@
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
(evil-magit window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode evil-nerd-commenter ruby-end web-mode flymake-ruby rvm dash-at-point robe base16-theme exec-path-from-shell evil))))
(company-ansible alchemist evil-magit window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode evil-nerd-commenter ruby-end web-mode flymake-ruby rvm dash-at-point robe base16-theme exec-path-from-shell evil))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.