Changeset 13a1472 in dotfiles for emacs


Ignore:
Timestamp:
Jul 15, 2022, 6:52:01 AM (3 years ago)
Author:
Mikhail Kirillov <w96k@…>
Branches:
master
Children:
07d6016
Parents:
f38167b
Message:

Emacs: add web-mode loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • emacs/.emacs.d/.emacs-config.org

    rf38167b r13a1472  
    11261126*** Web-mode
    11271127#+BEGIN_SRC emacs-lisp :tangle init.el
    1128   (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
    1129   (add-to-list 'auto-mode-alist '("\\.twig\\'" . web-mode))
    1130 
    1131   (setq web-mode-markup-indent-offset 2)
    1132   (setq web-mode-enable-auto-pairing t)
    1133   (setq web-mode-enable-css-colorization t)
    1134   (setq web-mode-enable-block-face t)
    1135   (setq web-mode-enable-current-element-highlight t)
    1136   (setq web-mode-enable-current-column-highlight t)
     1128  (when (package-loaded? "web-mode")
     1129    (progn
     1130
     1131      (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
     1132      (add-to-list 'auto-mode-alist '("\\.twig.html\\'" . web-mode))
     1133
     1134      (setq web-mode-markup-indent-offset 2)
     1135      (setq web-mode-enable-auto-pairing t)
     1136      (setq web-mode-enable-css-colorization t)
     1137      (setq web-mode-enable-block-face t)
     1138      (setq web-mode-enable-current-element-highlight t)
     1139      (setq web-mode-enable-current-column-highlight t)))
    11371140#+END_SRC
    11381141
Note: See TracChangeset for help on using the changeset viewer.