I would like to enable show-paren-mode in my configuration file init.el, which is very convenient for debugging. As it is a minor mode as I've understood, I don't know how to proceed...Thank you very much!


I think (show-paren-mode 1) should do the job.

You can also try highlight-parentheses-mode if you want to highlight the cursor's current scope.

This is my config:

(use-package highlight-parentheses :ensure t :pin melpa :config (setq hl-paren-background-colors '("orangered4")) (setq hl-paren-colors '("black")))

  • I love use-package but I've never used :pin melpa before. Just curious, what does it do ? – Chakravarthy Raghunandan Sep 12 '16 at 16:17
  • it determines the repository you want to use – bertfred Sep 12 '16 at 16:22
  • isn't that redundant most of the times? I get 90% of the packages from melpa – Chakravarthy Raghunandan Sep 12 '16 at 16:25
  • yes it is...in most cases – bertfred Sep 12 '16 at 16:29
  • You might find :pin useful depending on the sort priority of your package repos. For example, you might want to pick up packages from melpa-stable where possible, so you give that higher priority. Then you might want to pin a specific package to melpa because you always want the latest version. – glucas Sep 13 '16 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.