Skip to content

Commit

Permalink
changed yorick-auto.el pattern to \\.i\\', made indentation fix to yo…
Browse files Browse the repository at this point in the history
…rick.el
  • Loading branch information
dhmunro committed Jun 25, 2013
1 parent 1ea1398 commit 343cfd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions emacs/yorick-auto.el
Expand Up @@ -6,8 +6,8 @@
(autoload 'yssh "yorick" "see yorick.el in site-lisp dir" t)
(autoload 'yorick-mode "yorick" "see yorick.el in site-lisp dir" t)
(autoload 'yutil-setup "yorick" "see yorick.el in site-lisp dir" nil)
(if (assoc "\\.i$" auto-mode-alist)
(if (assoc "\\.i\\'" auto-mode-alist)
;; this presumes user doesn't want .i files to be in C mode (default)
;; -- possibly this is antisocial, but an expert can easily put it back
(setcdr (assoc "\\.i$" auto-mode-alist) 'yorick-mode)
(setq auto-mode-alist (append '(("\\.i$" . yorick-mode)) auto-mode-alist)))
(setcdr (assoc "\\.i\\'" auto-mode-alist) 'yorick-mode)
(setq auto-mode-alist (append '(("\\.i\\'" . yorick-mode)) auto-mode-alist)))
2 changes: 1 addition & 1 deletion emacs/yorick.el
Expand Up @@ -682,7 +682,7 @@ Key bindings:
;; make-local-hook is obsolete since Emacs 21.1, the work is done
;; automatically by add-hook
(if (or (< emacs-major-version 21)
(and (= emacs-major-version 21) (< emacs-minor-version 1)))
(and (= emacs-major-version 21) (< emacs-minor-version 1)))
(make-local-hook 'kill-buffer-hook))
(add-hook 'kill-buffer-hook 'yoterm-killbuf nil t)
(let ((buf (current-buffer)))
Expand Down

0 comments on commit 343cfd6

Please sign in to comment.