Guest User

Solution for header2 web-mode

a guest
Aug 8th, 2015
191
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     )
RAW Paste Data