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

Calling (paredit-mode) etc. from elisp code always enables, not toggles, the mode #138

Merged
merged 1 commit into from
May 4, 2012

Commits on May 4, 2012

  1. Calling (paredit-mode) etc. from elisp code always enables, not toggl…

    …es, the mode.
    
    `paredit-mode' with no arguments only toggles the mode when called
    interactively. From Lisp, ommitted or `nil' argument enables the mode -- this
    "makes it easy to enable the minor mode in a major mode hook, for example".
    
    See: (info "(elisp) Defining Minor Modes")
    
    Third parties using `esk-turn-on-paredit', `esk-turn-on-whitespace', or
    `esk-turn-on-idle-highlight-mode' should simply replace
      (add-hook 'xyz 'esk-turn-on-paredit)
    with
      (add-hook 'xyz 'paredit-mode)
    drothlis committed May 4, 2012
    Configuration menu
    Copy the full SHA
    c71507f View commit details
    Browse the repository at this point in the history