From f1684eb7dcba3b9b254a77a087f6f174632389fb Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 21 Jul 2012 00:14:29 +0900 Subject: [PATCH] load PKGBUILD-mode when available --- emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.el b/emacs.el index 05802b3..416d84f 100644 --- a/emacs.el +++ b/emacs.el @@ -648,6 +648,11 @@ drill-instructor.el" ("PKGBUILD\\'" . sh-mode) ,@auto-mode-alist)) +(when (locate-library "pkgbuild-mode") + (autoload 'pkgbuild-mode "pkgbuild-mode.el" "PKGBUILD mode." t) + (setq auto-mode-alist (append '(("/PKGBUILD$" . pkgbuild-mode)) + auto-mode-alist))) + (setq python-python-command (or (executable-find "python3") (executable-find "python"))) (defun my-python-run-as-command ()