Skip to content

Instantly share code, notes, and snippets.

@tomjack tomjack/*scratch* Secret
Created Aug 4, 2010

Embed
What would you like to do?
;; I put paredit-beta.el at ~/.emacs.d/vendor/paredit.el
(add-to-list 'load-path "/home/tomoj/.emacs.d/vendor/")
(require 'paredit)
(require 'clojure-mode)
(define-key paredit-mode-map (kbd "M-[") 'paredit-wrap-square)
(define-key paredit-mode-map (kbd "M-{") 'paredit-wrap-curly)
(autoload 'paredit-mode "paredit"
"Minor mode for pseudo-structurally editing Lisp code." t)
(add-hook 'emacs-lisp-mode-hook (lambda () (paredit-mode +1)))
(add-hook 'lisp-mode-hook (lambda () (paredit-mode +1)))
(add-hook 'clojure-mode-hook (lambda () (paredit-mode +1)))
(add-hook 'lisp-interaction-mode-hook (lambda () (paredit-mode +1)))
(define-key lisp-mode-shared-map (kbd "TAB") 'slime-indent-and-complete-symbol)
(define-key lisp-mode-shared-map (kbd "RET") 'reindent-then-newline-and-indent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.