Skip to content

Instantly share code, notes, and snippets.

@frankyxhl
Created July 31, 2012 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankyxhl/3219502 to your computer and use it in GitHub Desktop.
Save frankyxhl/3219502 to your computer and use it in GitHub Desktop.
emacs-indent-tab-mode problem
(defun indent-hint-mode (&optional l lst)
(interactive)
(let* ((c '(indent-hint-current-column))
(lst (or lst '(("^[ \t]*\\([^ \t]\\)"))))
(lst (if l lst (reverse lst))))
(indent-hint-init l)
(dolist (x lst)
(indent-hint (car x) c (cadr x)))))
;;根据上面的mode改进的希望的tab mode
(defun indent-hint-tab-mode (&optional l lst)
(interactive)
(let* ((c '(indent-hint-current-column))
(lst (or lst '(("^[ ]*\\([^ ]\\)"))))
(lst (if l lst (reverse lst))))
(indent-hint-init l)
(dolist (x lst)
(indent-hint (car x) c (cadr x)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment