This file contains hidden or 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
| /log/ | |
| /logs/ | |
| /images/ | |
| /javascripts/ | |
| /stylesheets/ | |
| /tmp/ | |
| /vendor/ | |
| *.sql | |
| *.tags* | |
| *.gemtags* |
This file contains hidden or 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 use-theme (theme &optional no-confirm no-enable) | |
| (interactive | |
| (list | |
| (intern (completing-read "Load custom theme: " | |
| (mapcar 'symbol-name | |
| (custom-available-themes)))) | |
| nil nil)) | |
| (progn | |
| (dolist (curtheme (custom-available-themes)) | |
| (disable-theme curtheme)) |
This file contains hidden or 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 ido-imenu () | |
| "Update the imenu index and then use ido to select a symbol to navigate to. | |
| Symbols matching the text at point are put first in the completion list." | |
| (interactive) | |
| (imenu--make-index-alist) | |
| (let ((name-and-pos '()) | |
| (symbol-names '())) | |
| (flet ((addsymbols (symbol-list) | |
| (when (listp symbol-list) | |
| (dolist (symbol symbol-list) |
This file contains hidden or 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
| ;; Push mark when using ido-imenu | |
| (defvar push-mark-before-goto-char nil) | |
| (defadvice goto-char (before push-mark-first activate) | |
| (when push-mark-before-goto-char | |
| (push-mark))) | |
| (defun ido-imenu-push-mark () | |
| (interactive) |
NewerOlder