Advertisement
Guest User

Solution for header2 web-mode

a guest
Aug 8th, 2015
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.42 KB | None | 0 0
  1.   (defun patch-for-leading-space ()
  2.     "This is a patch to remove leading space, to solve the bug with never ending loop with Web-mode in web-mode-markup-indentation-origin"
  3.     (evil-normal-state)
  4.     (evil-goto-first-line)
  5.     (kill-line)
  6.     (delete-backward-char 1)
  7.     (evil-goto-line)
  8.     )
  9.  
  10.   (defsubst my/patch-for-web-mode ()
  11.     (if (eq major-mode 'web-mode)
  12.         (patch-for-leading-space)
  13.       )
  14.     )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement