diff options
author | Franck Cuny <franckcuny@gmail.com> | 2016-02-12 20:58:37 -0800 |
---|---|---|
committer | Franck Cuny <franckcuny@gmail.com> | 2016-02-12 20:58:37 -0800 |
commit | 5f2b301a8df5410962519d2b7e9a977b03e75977 (patch) | |
tree | da73920a1109c0820cdf3a3e2902087c95f3b3a7 /emacs.d/modes | |
parent | [emacs] Move some packages to a new config file. (diff) | |
download | emacs.d-5f2b301a8df5410962519d2b7e9a977b03e75977.tar.gz |
[emacs] Split the config into 'core' and 'modes'.
Separate the modules that are 'core' (e.g.: related to editing, manipulating text, and so on) and the 'modes' (e.g.: related to syntax, langage support, etc).
Diffstat (limited to '')
-rw-r--r-- | emacs.d/modes/cfg-puppet.el (renamed from emacs.d/inits/90_puppet.el) | 2 | ||||
-rw-r--r-- | emacs.d/modes/cfg-thrift.el (renamed from emacs.d/inits/90_thrift.el) | 2 | ||||
-rw-r--r-- | emacs.d/modes/cfg-yaml.el (renamed from emacs.d/inits/90_yaml.el) | 2 | ||||
-rw-r--r-- | emacs.d/modes/lang-c.el (renamed from emacs.d/inits/90_lang-c.el) | 2 | ||||
-rw-r--r-- | emacs.d/modes/lang-go.el (renamed from emacs.d/inits/90_lang-go.el) | 20 | ||||
-rw-r--r-- | emacs.d/modes/lang-markdown.el (renamed from emacs.d/inits/90_markdown.el) | 1 | ||||
-rw-r--r-- | emacs.d/modes/lang-python.el (renamed from emacs.d/inits/90_lang-python.el) | 2 | ||||
-rw-r--r-- | emacs.d/modes/lang-scheme.el | 6 | ||||
-rw-r--r-- | emacs.d/modes/lang-shell.el (renamed from emacs.d/inits/90_shell.el) | 0 |
9 files changed, 28 insertions, 9 deletions
diff --git a/emacs.d/inits/90_puppet.el b/emacs.d/modes/cfg-puppet.el index 97b8a67..5c1185a 100644 --- a/emacs.d/inits/90_puppet.el +++ b/emacs.d/modes/cfg-puppet.el @@ -1,3 +1,5 @@ (use-package puppet-mode :ensure t :mode ("\\.pp$" . puppet-mode)) + +(provide 'cfg-puppet) diff --git a/emacs.d/inits/90_thrift.el b/emacs.d/modes/cfg-thrift.el index 3a99429..4f491c2 100644 --- a/emacs.d/inits/90_thrift.el +++ b/emacs.d/modes/cfg-thrift.el @@ -1,3 +1,5 @@ (use-package thrift :ensure t :defer t) + +(provide 'cfg-thrift) diff --git a/emacs.d/inits/90_yaml.el b/emacs.d/modes/cfg-yaml.el index 6758789..7dc74e0 100644 --- a/emacs.d/inits/90_yaml.el +++ b/emacs.d/modes/cfg-yaml.el @@ -1,3 +1,5 @@ (use-package yaml-mode :ensure t :defer t) + +(provide 'cfg-yaml) diff --git a/emacs.d/inits/90_lang-c.el b/emacs.d/modes/lang-c.el index bd4cc7f..9b4f357 100644 --- a/emacs.d/inits/90_lang-c.el +++ b/emacs.d/modes/lang-c.el @@ -4,3 +4,5 @@ :config (progn (setq c-basic-offset 2))) + +(provide 'lang-c) diff --git a/emacs.d/inits/90_lang-go.el b/emacs.d/modes/lang-go.el index b20b467..8d81f2c 100644 --- a/emacs.d/inits/90_lang-go.el +++ b/emacs.d/modes/lang-go.el @@ -1,12 +1,3 @@ -(use-package go-eldoc - :ensure t - :defer t - :init (add-hook 'go-mode-hook 'go-eldoc-setup)) - -(use-package company-go - :ensure t - :defer t) - (use-package go-mode :ensure t :defer t @@ -21,3 +12,14 @@ (go-eldoc-setup) (add-hook 'before-save-hook 'gofmt-before-save) (set (make-local-variable 'company-backends) '(company-go)))))) + +(use-package go-eldoc + :ensure t + :defer t + :init (add-hook 'go-mode-hook 'go-eldoc-setup)) + +(use-package company-go + :ensure t + :defer t) + +(provide 'lang-go) diff --git a/emacs.d/inits/90_markdown.el b/emacs.d/modes/lang-markdown.el index 3ec3ec4..f4f544d 100644 --- a/emacs.d/inits/90_markdown.el +++ b/emacs.d/modes/lang-markdown.el @@ -7,3 +7,4 @@ (when (executable-find preferred-markdown-impl) (setq markdown-command preferred-markdown-impl))))) +(provide 'lang-markdown) diff --git a/emacs.d/inits/90_lang-python.el b/emacs.d/modes/lang-python.el index 84fafab..b22ce16 100644 --- a/emacs.d/inits/90_lang-python.el +++ b/emacs.d/modes/lang-python.el @@ -3,3 +3,5 @@ :config (progn (setq python-indent-offset 2))) + +(provide 'lang-python) diff --git a/emacs.d/modes/lang-scheme.el b/emacs.d/modes/lang-scheme.el new file mode 100644 index 0000000..1f0dec3 --- /dev/null +++ b/emacs.d/modes/lang-scheme.el @@ -0,0 +1,6 @@ +(use-package geiser + :config + (setq geiser-active-implementations '(racket)) + :ensure t) + +(provide 'lang-scheme) diff --git a/emacs.d/inits/90_shell.el b/emacs.d/modes/lang-shell.el index aa3fab5..aa3fab5 100644 --- a/emacs.d/inits/90_shell.el +++ b/emacs.d/modes/lang-shell.el |