diff options
author | 2016-10-10 22:28:55 +0200 | |
---|---|---|
committer | 2016-10-10 22:28:55 +0200 | |
commit | e6f86a45211583f099615cd649e69b3c49a14a42 (patch) | |
tree | 65ee275a7037b72543b6f231afe91d61dd83ee1f /emacs/.emacs.d/init.org | |
parent | 7bf363a46ad6f97aeda7b7c910f84bba42ef5b94 (diff) | |
download | new-dotfiles-e6f86a45211583f099615cd649e69b3c49a14a42.tar.gz new-dotfiles-e6f86a45211583f099615cd649e69b3c49a14a42.zip |
Add js-mode configuration
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r-- | emacs/.emacs.d/init.org | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index c4970c6..82dd919 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -30,6 +30,13 @@ To start off, first I need to enable lexical binding. (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/"))) #+END_SRC + Add the directory with my mode-specific configuration files to the + load path. + + #+BEGIN_SRC emacs-lisp + (add-to-list 'load-path (locate-user-emacs-file "init/")) + #+END_SRC + Add all my vendored packages to the load path. #+BEGIN_SRC emacs-lisp @@ -674,6 +681,17 @@ To start off, first I need to enable lexical binding. * Major modes + Configuration for major modes is specified in dedicated + configuration files. + + - [[file:init/js-mode.org][js-mode]] :: JavaScript mode is used by me for json files. js2-mode + doesn't work very nicely with json, always showing syntax + errors. + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'js (load "js-mode-init")) + #+END_SRC + ** Emacs lisp mode Enable paredit mode. |