Add Elixir and ispell configuration
This commit is contained in:
parent
648a192b64
commit
58462d2961
5 changed files with 21 additions and 12 deletions
|
|
@ -24,18 +24,11 @@
|
||||||
company-yasnippet
|
company-yasnippet
|
||||||
)
|
)
|
||||||
company-elisp ; Emacs Lisp
|
company-elisp ; Emacs Lisp
|
||||||
;; company-semantic ; C/C++
|
company-robe ;; Ruby
|
||||||
(company-clang company-cmake) ; C/C++
|
alchemist-company ;; Elixir
|
||||||
company-robe
|
(company-dabbrev-code company-dabbrev company-abbrev) ;; abbrev
|
||||||
;; 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-files ; files & directory
|
company-files ; files & directory
|
||||||
company-ispell ; Ispell
|
company-ispell ; Ispell
|
||||||
;; company-oddmuse ; wiki
|
|
||||||
))
|
))
|
||||||
|
|
||||||
(global-company-mode 1)
|
(global-company-mode 1)
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,8 @@
|
||||||
(add-to-list 'purpose-user-mode-purposes '(dired-mode . tools))
|
(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 '(magit-mode . tools))
|
||||||
(add-to-list 'purpose-user-mode-purposes '(help-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 '(compilation-mode . tools))
|
||||||
(add-to-list 'purpose-user-mode-purposes '(etags-select-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
|
(add-to-list 'purpose-user-mode-purposes '(reb-mode . tools)) ;; Regexp builder
|
||||||
|
|
|
||||||
6
09ispell.el
Normal file
6
09ispell.el
Normal 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
5
20elixir.el
Normal 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))
|
||||||
6
init.el
6
init.el
|
|
@ -59,6 +59,9 @@
|
||||||
rvm ;; Support rvm usage
|
rvm ;; Support rvm usage
|
||||||
ruby-end ;; Insert end for methods automatically
|
ruby-end ;; Insert end for methods automatically
|
||||||
|
|
||||||
|
;; Elixir
|
||||||
|
alchemist
|
||||||
|
|
||||||
;; Web
|
;; Web
|
||||||
web-mode
|
web-mode
|
||||||
|
|
||||||
|
|
@ -84,6 +87,7 @@
|
||||||
(load "~/.emacs.d/06company-yasnippet.el")
|
(load "~/.emacs.d/06company-yasnippet.el")
|
||||||
(load "~/.emacs.d/07projectile.el")
|
(load "~/.emacs.d/07projectile.el")
|
||||||
(load "~/.emacs.d/08purpose.el")
|
(load "~/.emacs.d/08purpose.el")
|
||||||
|
(load "~/.emacs.d/09ispell.el")
|
||||||
(load "~/.emacs.d/10themes.el")
|
(load "~/.emacs.d/10themes.el")
|
||||||
|
|
||||||
;; Actual supported languages
|
;; Actual supported languages
|
||||||
|
|
@ -98,7 +102,7 @@
|
||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(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
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue