aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org18
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.