From 28e9695a24ecb8d2e5f048c18c3ad768d3bee639 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Thu, 31 Jan 2019 18:09:54 -0500 Subject: [PATCH] Added apache-mode --- custom.el | 2 +- init.el | 1 + modules/init-apache.el | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 modules/init-apache.el diff --git a/custom.el b/custom.el index d759b67..7b9cf66 100644 --- a/custom.el +++ b/custom.el @@ -11,7 +11,7 @@ '(ecb-options-version "2.50") '(package-selected-packages (quote - (editorconfig yaml-mode whitespace-cleanup-mode web-mode vlf use-package undo-tree sublime-themes sml-modeline smart-mode-line-powerline-theme shrink-path scss-mode sass-mode rainbow-mode pkgbuild-mode pip-requirements php-refactor-mode nlinum nginx-mode neotree markdown-mode less-css-mode jedi highlight-indent-guides gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-gutter-fringe flycheck emmet-mode ecb dokuwiki-mode diminish crystal-mode company-php bug-hunter anzu all-the-icons)))) + (dokuwiki-mode web-mode rainbow-mode yaml-mode scss-mode sass-mode less-css-mode pkgbuild-mode pip-requirements jedi company-php php-mode php-refactor-mode markdown-mode crystal-mode git-timemachine gitattributes-mode gitignore-mode gitconfig-mode git-gutter-fringe nginx-mode emmet-mode whitespace-cleanup-mode flycheck apache-mode neotree shrink-path all-the-icons highlight-indent-guides anzu sml-modeline smart-mode-line-powerline-theme smart-mode-line ecb diminish undo-tree nlinum sublime-themes use-package)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. diff --git a/init.el b/init.el index f8d6aef..0c1b212 100644 --- a/init.el +++ b/init.el @@ -45,6 +45,7 @@ (require 'init-icons nil 'noerror) (require 'init-neotree nil 'noerror) ;; Tools +(require 'init-apache nil 'noerror) (require 'init-flycheck nil 'noerror) (require 'init-whitespace nil 'noerror) (require 'init-emmet-mode nil 'noerror) diff --git a/modules/init-apache.el b/modules/init-apache.el new file mode 100644 index 0000000..c022cd3 --- /dev/null +++ b/modules/init-apache.el @@ -0,0 +1,20 @@ +;;; init-apache.el --- .Emacs Configuration -*- lexical-binding: t -*- +;;; Commentary: +;; + +;;; Code: +;;--------------------------- +;; Apache Mode +;;--------------------------- +(use-package apache-mode + :mode + ("\\.htaccess\\'" . apache-mode) + ("httpd\\.conf\\'" . apache-mode) + ("srm\\.conf\\'" . apache-mode) + ("access\\.conf\\'" . apache-mode) + ("sites-\\(available\\|enabled\\)/" . apache-mode)) + +(provide 'init-apache) + +;; End: +;;; init-apache.el ends here