Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Merge pull request #138 from drothlis/v2
Browse files Browse the repository at this point in the history
Calling (paredit-mode) etc. from elisp code always enables, not toggles, the mode
  • Loading branch information
technomancy committed May 4, 2012
2 parents 794a005 + c71507f commit c22fa56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion modules/starter-kit-lisp.el
Expand Up @@ -82,7 +82,7 @@
(font-lock-add-keywords (intern (concat (symbol-name mode) "-mode"))
'(("(\\|)" . 'esk-paren-face))))
(add-hook (intern (concat (symbol-name mode) "-mode-hook"))
'esk-turn-on-paredit))
'paredit-mode))

(defun esk-pretty-fn ()
(font-lock-add-keywords nil `(("(\\(\\<fn\\>\\)"
Expand Down
11 changes: 1 addition & 10 deletions starter-kit-defuns.el
Expand Up @@ -60,15 +60,6 @@
(require 'saveplace)
(setq save-place t))

(defun esk-turn-on-whitespace ()
(whitespace-mode t))

(defun esk-turn-on-paredit ()
(paredit-mode t))

(defun esk-turn-on-idle-highlight-mode ()
(idle-highlight-mode t))

(defun esk-pretty-lambdas ()
(font-lock-add-keywords
nil `(("(?\\(lambda\\>\\)"
Expand All @@ -87,7 +78,7 @@
(add-hook 'prog-mode-hook 'esk-turn-on-save-place-mode)
(add-hook 'prog-mode-hook 'esk-pretty-lambdas)
(add-hook 'prog-mode-hook 'esk-add-watchwords)
(add-hook 'prog-mode-hook 'esk-turn-on-idle-highlight-mode)
(add-hook 'prog-mode-hook 'idle-highlight-mode)

(defun esk-prog-mode-hook ()
(run-hooks 'prog-mode-hook))
Expand Down

0 comments on commit c22fa56

Please sign in to comment.