aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-09-10 12:43:31 -0500
committerJesús <heckyel@hyperbola.info>2019-09-10 12:43:31 -0500
commitebf8bb77cb30226fc9d31a9cc6676de600500c01 (patch)
tree5cd2ad8dc67d72630684180b5712982cf8f3e908
parentaadca913eae56f4a679bfcadd2a06f689cc6254c (diff)
downloademacs-personal-ebf8bb77cb30226fc9d31a9cc6676de600500c01.tar.lz
emacs-personal-ebf8bb77cb30226fc9d31a9cc6676de600500c01.tar.xz
emacs-personal-ebf8bb77cb30226fc9d31a9cc6676de600500c01.zip
Added 'dotenv-mode'
An Emacs mode for .env files that includes the following features
-rw-r--r--custom.el2
-rw-r--r--init.el1
-rw-r--r--modules/init-dotenv.el12
3 files changed, 14 insertions, 1 deletions
diff --git a/custom.el b/custom.el
index d477016..b9285ac 100644
--- a/custom.el
+++ b/custom.el
@@ -11,7 +11,7 @@
'(ecb-options-version "2.50")
'(package-selected-packages
(quote
- (git-gutter-fringe yaml-mode whitespace-cleanup-mode web-mode vue-mode use-package undo-tree sublime-themes sml-modeline smartparens smart-mode-line-powerline-theme shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements php-refactor-mode nlinum nginx-mode neotree markdown-mode log4j-mode less-css-mode json-mode js2-refactor ivy-rich ivy-hydra highlight-indent-guides gitignore-mode gitconfig-mode gitattributes-mode git-timemachine flycheck eslintd-fix emmet-mode elpy ecb dokuwiki-mode diminish crystal-mode counsel company-quickhelp company-php apache-mode anzu all-the-icons))))
+ (git-gutter-fringe yaml-mode whitespace-cleanup-mode which-key web-mode vue-mode use-package undo-tree sublime-themes sml-modeline smartparens smart-mode-line-powerline-theme shrink-path sass-mode rjsx-mode rainbow-mode py-autopep8 projectile pkgbuild-mode pip-requirements php-refactor-mode nlinum nginx-mode neotree markdown-mode log4j-mode less-css-mode json-mode js2-refactor ivy-rich ivy-hydra highlight-indent-guides gitignore-mode gitconfig-mode gitattributes-mode git-timemachine flycheck eslintd-fix emmet-mode elpy ecb dotenv-mode dokuwiki-mode diminish crystal-mode counsel company-quickhelp company-php apache-mode anzu all-the-icons))))
(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 5a41f3a..076604f 100644
--- a/init.el
+++ b/init.el
@@ -113,6 +113,7 @@
;; Plus
(require 'init-rainbow)
(require 'init-web-mode)
+ (require 'init-dotenv)
(require 'init-dokuwiki))
;;; Custom variables
diff --git a/modules/init-dotenv.el b/modules/init-dotenv.el
new file mode 100644
index 0000000..e9c0785
--- /dev/null
+++ b/modules/init-dotenv.el
@@ -0,0 +1,12 @@
+;;; init-dotenv.el --- .Emacs Configuration -*- lexical-binding: t -*-
+;;; Commentary:
+;;
+
+;;; Code:
+;; dotenv-mode
+(use-package dotenv-mode
+ :pin "MELPA"
+ :mode ("\\.env\\'" . dotenv-mode))
+
+(provide 'init-dotenv)
+;;; init-dotenv.el ends here