From 27c10d02727974a6891f055f37a04c845e2b8a77 Mon Sep 17 00:00:00 2001 From: gxlin Date: Sun, 7 Mar 2021 20:34:19 +0800 Subject: Add paredit, make ledger executable --- .emacs.d/init.el | 12 +++++++++--- .zshrc | 2 +- bin/ledger | 0 3 files changed, 10 insertions(+), 4 deletions(-) mode change 100644 => 100755 bin/ledger 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))) + diff --git a/.zshrc b/.zshrc index fea0494..c12e265 100644 --- a/.zshrc +++ b/.zshrc @@ -14,7 +14,7 @@ HISTSIZE=1000 SAVEHIST=1000 HISTFILE=~/.zsh_history -[ -f ~/.dotfiles/bin ] && export PATH="$HOME/.dotfiles/bin:$PATH" +[ -d ~/.dotfiles/bin ] && export PATH="$HOME/.dotfiles/bin:$PATH" [[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh diff --git a/bin/ledger b/bin/ledger old mode 100644 new mode 100755 -- cgit v1.2.3