Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Autoload and invoke paredit. Fix ruby-mode RET.

  • Loading branch information...
commit f8212611e4282b75c4d05a00bcb8c32e366b6c73 1 parent 1050b6f
@technomancy technomancy authored
View
1  elpa-to-submit/paredit.el
@@ -236,6 +236,7 @@ Signal an error if no clause matches."
(defvar paredit-mode-map (make-sparse-keymap)
"Keymap for the paredit minor mode.")
+;;;###autoload
(define-minor-mode paredit-mode
"Minor mode for pseudo-structurally editing Lisp code.
\\<paredit-mode-map>"
View
1  starter-kit-elpa.el
@@ -9,6 +9,7 @@
"css-mode"
"ert"
;; To submit:
+;;; "paredit"
;;; "haml"
;;; "sass"
;;; "clojure-mode"
View
4 starter-kit-lisp.el
@@ -8,6 +8,10 @@
(add-hook 'emacs-lisp-mode-hook 'emacs-lisp-remove-elc-on-save)
+(when (boundp 'paredit-mode)
+ (add-hook emacs-lisp-mode-hook (lambda () (paredit-mode +1)))
+ (add-hook lisp-mode-hook (lambda () (paredit-mode +1))))
+
(defun emacs-lisp-remove-elc-on-save ()
"If you're saving an elisp file, likely the .elc is no longer valid."
(make-local-variable 'after-save-hook)
View
1  starter-kit-misc.el
@@ -26,6 +26,7 @@
indentation space-after-tab)
whitespace-line-column 100
ediff-window-setup-function 'ediff-setup-windows-plain
+ oddmuse-directory (concat dotfiles-dir "oddmuse")
save-place-file (concat dotfiles-dir "places"))
;; Set this to whatever browser you use:
View
1  starter-kit-ruby.el
@@ -6,6 +6,7 @@
'(progn
(require 'inf-ruby)
(require 'ruby-compilation)
+ (define-key ruby-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
(define-key ruby-mode-map (kbd "C-c l") "lambda")))
(global-set-key (kbd "C-h r") 'ri)
Please sign in to comment.
Something went wrong with that request. Please try again.