SHARE
TWEET

Solution for header2 web-mode

a guest Aug 8th, 2015 177 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top