diff options
author | gxlin <[email protected]> | 2021-03-07 20:34:19 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-03-07 20:34:19 +0800 |
commit | 27c10d02727974a6891f055f37a04c845e2b8a77 (patch) | |
tree | c9dbbbabe2b5a3e10c03cf8a216de2998dcf40bd /.emacs.d/init.el | |
parent | 278ede552736d0e87bf5799f60c7981b6a503a21 (diff) | |
download | dotfiles-27c10d02727974a6891f055f37a04c845e2b8a77.tar.gz dotfiles-27c10d02727974a6891f055f37a04c845e2b8a77.tar.bz2 dotfiles-27c10d02727974a6891f055f37a04c845e2b8a77.zip |
Add paredit, make ledger executable
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r-- | .emacs.d/init.el | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 418c41d..b3583b0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1,7 +1,7 @@ ;; Set up package.el to work with MELPA (require 'package) (add-to-list 'package-archives - '("melpa" . "https://melpa.org/packages/")) + '("melpa" . "https://melpa.org/packages/")) (package-initialize) (custom-set-variables @@ -9,14 +9,13 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(package-selected-packages '(auto-complete ledger-mode evil))) + '(package-selected-packages '(paredit auto-complete ledger-mode evil))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) - (when (version<= "26.0.50" emacs-version) (global-display-line-numbers-mode)) @@ -48,3 +47,10 @@ (package-install 'auto-complete)) (require 'auto-complete) (ac-config-default) + +;; Par Edit +(unless (package-installed-p 'paredit) + (package-install 'paredit)) +(require 'paredit) +(add-hook 'emacs-lisp-mode-hook (lambda () (paredit-mode 1))) + |