Created
July 31, 2012 18:59
-
-
Save frankyxhl/3219502 to your computer and use it in GitHub Desktop.
emacs-indent-tab-mode problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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