Permalink
Browse files

Autoload and invoke paredit. Fix ruby-mode RET.

  • Loading branch information...
1 parent 1050b6f commit f8212611e4282b75c4d05a00bcb8c32e366b6c73 @technomancy committed Dec 11, 2008
Showing with 8 additions and 0 deletions.
  1. +1 −0 elpa-to-submit/paredit.el
  2. +1 −0 starter-kit-elpa.el
  3. +4 −0 starter-kit-lisp.el
  4. +1 −0 starter-kit-misc.el
  5. +1 −0 starter-kit-ruby.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
@@ -9,6 +9,7 @@
"css-mode"
"ert"
;; To submit:
+;;; "paredit"
;;; "haml"
;;; "sass"
;;; "clojure-mode"
View
@@ -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
@@ -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
@@ -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)

2 comments on commit f821261

@phunculist

In lines 12, 13 of starter-kit-lisp.el you’ve forgotten to quote the hook names.

@technomancy
Owner

Good catch; thanks.

Please sign in to comment.