diff options
Diffstat (limited to 'elisp.el')
-rw-r--r-- | elisp.el | 22 |
1 files changed, 17 insertions, 5 deletions
@@ -1,10 +1,5 @@ ;;; -*- lexical-binding: t; -*- -;;; a simpler mode name - -(add-hook 'emacs-lisp-mode-hook - (lambda () (set 'mode-name "ELisp"))) - ;;; fontification of extra keywords in emacs lisp files (require 'advice) @@ -56,6 +51,23 @@ (throw 'matcher t))))))) nil)) +;;; highlight parentheses + +(require 'paren) +(set 'show-paren-style 'parenthesis) +(set 'show-paren-highlight-openparen t) +(set 'show-paren-when-point-in-periphery nil) +(set 'show-paren-when-point-inside-paren nil) + +(add-hook 'emacs-lisp-mode-hook #'show-paren-mode) + +;;; remember cursor position + +(require 'saveplace) +(set 'save-place-file (expand-file-name "saveplace" load-file-directory)) +(set 'save-place-forget-unreadable-files t) +(save-place-mode 1) + ;;; a better indentation (advice-add #'calculate-lisp-indent :override #'better-calculate-lisp-indent) |