From f8d1d9481575573baa3aec9dfd68023292d3ca27 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 11 Apr 2022 19:49:43 +0200 Subject: configs update --- .config/emacs/org/config.org | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to '.config/emacs') diff --git a/.config/emacs/org/config.org b/.config/emacs/org/config.org index e1a3253..7c7f34b 100644 --- a/.config/emacs/org/config.org +++ b/.config/emacs/org/config.org @@ -189,6 +189,11 @@ (setq evil-want-C-u-scroll t) #+END_SRC +** Files types attribution + #+BEGIN_SRC emacs-lisp + (add-to-list 'auto-mode-alist '("xinitrc$" . shell-script-mode)) + #+END_SRC + ** Core packages *** Autopair #+BEGIN_SRC emacs-lisp @@ -769,6 +774,24 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer." (setq eyebrowse-new-workspace t) #+END_SRC +*** web-mode + #+BEGIN_SRC emacs-lisp + (defun my-setup-php () + ;; enable web mode + (web-mode) + + ;; make these variables local + (make-local-variable 'web-mode-code-indent-offset) + (make-local-variable 'web-mode-markup-indent-offset) + (make-local-variable 'web-mode-css-indent-offset) + + ;; set indentation, can set different indentation level for different code type + (setq web-mode-code-indent-offset 4) + (setq web-mode-css-indent-offset 4) + (setq web-mode-markup-indent-offset 4)) + (add-to-list 'auto-mode-alist '("\\.php$" . my-setup-php)) + #+END_SRC + *** undo-tree #+BEGIN_SRC emacs-lisp (require 'undo-tree) -- cgit v1.2.3