summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-06-29 13:16:22 +0200
committerGravatar Tom Willemse2015-06-29 13:16:22 +0200
commit61976703e70731f8d5a83b5cf9a33b32e00e1fc1 (patch)
tree9743e74567c10bd51b5c2a0b63c41af945adb003 /emacs
parentc83c9fb28dd5750ed382b6d879754eca5ba911d9 (diff)
downloaddotfiles-61976703e70731f8d5a83b5cf9a33b32e00e1fc1.tar.gz
dotfiles-61976703e70731f8d5a83b5cf9a33b32e00e1fc1.zip
Move po-mode settings to init.org
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el2
-rw-r--r--emacs/.emacs.d/init.org15
2 files changed, 15 insertions, 2 deletions
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