Skip to content

Commit

Permalink
Autoload and invoke paredit. Fix ruby-mode RET.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Dec 11, 2008
1 parent 1050b6f commit f821261
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions elpa-to-submit/paredit.el
Expand Up @@ -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>"
Expand Down
1 change: 1 addition & 0 deletions starter-kit-elpa.el
Expand Up @@ -9,6 +9,7 @@
"css-mode"
"ert"
;; To submit:
;;; "paredit"
;;; "haml"
;;; "sass"
;;; "clojure-mode"
Expand Down
4 changes: 4 additions & 0 deletions starter-kit-lisp.el
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions starter-kit-misc.el
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions starter-kit-ruby.el
Expand Up @@ -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)
Expand Down

0 comments on commit f821261

Please sign in to comment.