summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-11-11 11:14:42 +0100
committerGravatar Tom Willemse2014-11-11 11:14:42 +0100
commit269ad348ac54e54ebed4dda59dc5bce78f86423b (patch)
treec6b3574d031d5f275849898cd4ed35dffda18ec3 /emacs/.emacs.d/init.org
parent8e4cf562802a6d5c5418b1fa75f43ab3a95ef04a (diff)
downloaddotfiles-269ad348ac54e54ebed4dda59dc5bce78f86423b.tar.gz
dotfiles-269ad348ac54e54ebed4dda59dc5bce78f86423b.zip
Set some more web-mode settings
Diffstat (limited to 'emacs/.emacs.d/init.org')
-rw-r--r--emacs/.emacs.d/init.org12
1 files changed, 9 insertions, 3 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index 040208f..dbe9e8f 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -73,9 +73,9 @@
specific value.
#+BEGIN_SRC emacs-lisp
- (defmacro change-setting (name value)
+ (defmacro change-settings (&rest settings)
"Create a function that changes the value of NAME to VALUE."
- `(lambda () (setq ,name ,value)))
+ `(lambda () (setq ,@settings)))
#+END_SRC
** Whitespace only with tabs
@@ -1206,7 +1206,13 @@
Set =indent-tabs-mode= for ~web-mode~ as well.
#+BEGIN_SRC emacs-lisp
- (add-hook 'web-mode-hook (change-setting indent-tabs-mode t))
+ (defvar web-mode-code-indent-offset)
+ (defvar web-mode-markup-indent-offset)
+
+ (add-hook 'web-mode-hook
+ (change-settings indent-tabs-mode t
+ web-mode-code-indent-offset 4
+ web-mode-markup-indent-offset 4))
#+END_SRC
* Load custom file