From 61976703e70731f8d5a83b5cf9a33b32e00e1fc1 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 29 Jun 2015 13:16:22 +0200 Subject: Move po-mode settings to init.org --- emacs/.emacs.d/init.el | 2 -- emacs/.emacs.d/init.org | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 6823391..3a03441 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -30,7 +30,6 @@ ;;;; Autoloads -(autoload 'po-mode "po-mode" nil t) (autoload 'pony-mode "pony-mode" nil t) (autoload 'sawfish-mode "sawfish" nil t) (autoload 'tagedit-mode "tagedit" nil t) @@ -1100,7 +1099,6 @@ from myaethon2.core.decorators import ( ("\\.js\\(on\\)?$" . js2-mode) ("\\.m\\(ark\\)?d\\(?:o?wn\\)?$" . markdown-mode) ("\\.php[345]?$" . php-mode) - ("\\.po\\'\\|\\.po\\." . po-mode) ("\\.tm?pl$" . html-mode) ("^\\.Xmodmap$" . xmodmap-mode) ("^Cask$" . emacs-lisp-mode)) diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 4f5596d..2c7fa7a 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1119,6 +1119,21 @@ (add-to-list 'auto-mode-alist '("\\.html\\.erb$" . web-mode))) #+END_SRC +** PO mode + + Autoload =po-mode=, because it didn't come with an autloads file or + cookie. + + #+BEGIN_SRC emacs-lisp + (autoload 'po-mode "po-mode" nil t) + #+END_SRC + + Automatically enable =po-mode= for files that end in =.po= or that have + a =.po= extension followed by others (such as =.po.erb=). + + #+BEGIN_SRC emacs-lisp + (add-to-list 'auto-mode-alist '("\\.po\\'\\|\\.po\\." . po-mode)) + #+END_SRC * Minor modes -- cgit v1.2.3-54-g00ecf