From e6f86a45211583f099615cd649e69b3c49a14a42 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 10 Oct 2016 22:28:55 +0200 Subject: Add js-mode configuration --- emacs/.emacs.d/init.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'emacs/.emacs.d/init.org') 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. -- cgit v1.2.3-54-g00ecf