From 1ded601e3f46fa9fd2a72d2d327c16b0e6bbaa75 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 11 Jan 2021 15:48:00 +0100 Subject: Update --- .config/emacs/org/config.org | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to '.config/emacs/org/config.org') diff --git a/.config/emacs/org/config.org b/.config/emacs/org/config.org index c70946b..0ab389b 100644 --- a/.config/emacs/org/config.org +++ b/.config/emacs/org/config.org @@ -135,6 +135,24 @@ #+END_SRC ** Core packages +*** Autopair +#+BEGIN_SRC emacs-lisp +(require 'autopair) +(autopair-global-mode) +#+END_SRC + +*** Paredit +#+BEGIN_SRC emacs-lisp +(require 'paredit) +(defadvice paredit-mode (around disable-autopairs-around (arg)) + ad-do-it + (if (null ad-return-value) + (autopair-mode 1) + (autopair-mode -1) +)) +(ad-activate 'paredit-mode) +#+END_SRC + *** Evil mode #+BEGIN_SRC emacs-lisp (setq evil-want-integration t) ;; This is optional since it's already set to t by default. @@ -456,24 +474,6 @@ (setq c-default-style "openbsd") #+END_SRC -*** Autopair -#+BEGIN_SRC emacs-lisp -(require 'autopair) -(autopair-global-mode) -#+END_SRC - -*** Paredit -#+BEGIN_SRC emacs-lisp -(require 'paredit) -(defadvice paredit-mode (around disable-autopairs-around (arg)) - ad-do-it - (if (null ad-return-value) - (autopair-mode 1) - (autopair-mode -1) -)) -(ad-activate 'paredit-mode) -#+END_SRC - *** Magit #+BEGIN_SRC emacs-lisp (require 'magit) -- cgit v1.2.3