conf-highlight-indentation.el 676 B

123456789101112131415161718192021
  1. (defun aj-toggle-fold ()
  2. "Toggle fold all lines larger than indentation on current line"
  3. (interactive)
  4. (let ((col 1))
  5. (save-excursion
  6. (back-to-indentation)
  7. (setq col (+ 1 (current-column)))
  8. (set-selective-display
  9. (if selective-display nil (or col 1))))))
  10. (global-set-key [(M C i)] 'aj-toggle-fold)
  11. (global-set-key (kbd "C-<f4>") 'highlight-indentation-current-column-mode)
  12. (global-set-key (kbd "C-<f5>") 'highlight-indentation-mode)
  13. (require 'highlight-indentation)
  14. (set-face-background 'highlight-indentation-face "gray5")
  15. (set-face-background 'highlight-indentation-current-column-face "#2f4f4f")
  16. (provide 'conf-highlight-indentation)