Add .env to custom configuration
This commit is contained in:
parent
3ddd2efd64
commit
aba5e59b02
7
.env.example
Normal file
7
.env.example
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# General configuration
|
||||||
|
EMACS_USER="LibreUser."
|
||||||
|
EMACS_EMAIL="user@example.org"
|
||||||
|
|
||||||
|
# Angular configuration
|
||||||
|
ANGULAR_SERVER_DIR="/usr/local/lib/node_modules/@angular/language-server"
|
||||||
|
NODEJS_MODULE_DIR="/usr/local/lib/node_modules"
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -10,6 +10,7 @@
|
|||||||
.session
|
.session
|
||||||
.smex-items
|
.smex-items
|
||||||
*.eld
|
*.eld
|
||||||
|
.env
|
||||||
*~
|
*~
|
||||||
/.mc-lists.el
|
/.mc-lists.el
|
||||||
\#*\#
|
\#*\#
|
||||||
|
@ -12,14 +12,14 @@ First step:
|
|||||||
#### Main mirror
|
#### Main mirror
|
||||||
|
|
||||||
1. `git clone https://hgit.conocimientoslibres.ga/software/emacs-personal.git ~/.emacs.d/`
|
1. `git clone https://hgit.conocimientoslibres.ga/software/emacs-personal.git ~/.emacs.d/`
|
||||||
|
2. `cp -v ~/.emacs.d/.env.example ~/.emacs.d/.env`
|
||||||
2. `emacs --batch --eval='(load-file "~/.emacs.d/init.el")'`
|
3. `emacs --batch --eval='(load-file "~/.emacs.d/init.el")'`
|
||||||
|
|
||||||
#### Secundary mirror
|
#### Secundary mirror
|
||||||
|
|
||||||
1. `git clone https://notabug.org/heckyel/emacs-personal.git ~/.emacs.d/`
|
1. `git clone https://notabug.org/heckyel/emacs-personal.git ~/.emacs.d/`
|
||||||
|
2. `cp -v ~/.emacs.d/.env.example ~/.emacs.d/.env`
|
||||||
2. `emacs --batch --eval='(load-file "~/.emacs.d/init.el")'`
|
3. `emacs --batch --eval='(load-file "~/.emacs.d/init.el")'`
|
||||||
|
|
||||||
### Fonts
|
### Fonts
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
'(anzu-replace-to-string-separator " => ")
|
'(anzu-replace-to-string-separator " => ")
|
||||||
'(anzu-search-threshold 1000)
|
'(anzu-search-threshold 1000)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
'(git-gutter-fringe yaml-mode whitespace-cleanup-mode which-key web-mode vue-mode use-package undo-tree tide smartparens sass-mode rainbow-mode py-autopep8 projectile prettier-js pkgbuild-mode pip-requirements php-refactor-mode nginx-mode neotree lua-mode lsp-ui log4j-mode json-mode js2-refactor ivy-rich ivy-hydra highlight-indent-guides go-mode git-timemachine git-modes eslintd-fix emmet-mode elpy editorconfig dotenv-mode doom-themes doom-modeline dokuwiki-mode dockerfile-mode diminish dashboard dap-mode crystal-mode counsel company-quickhelp company-php apache-mode anzu)))
|
'(git-gutter-fringe yaml-mode whitespace-cleanup-mode which-key web-mode vue-mode use-package undo-tree tide smartparens sass-mode rainbow-mode py-autopep8 projectile prettier-js pkgbuild-mode pip-requirements php-refactor-mode nginx-mode neotree lua-mode lsp-ui log4j-mode load-env-vars json-mode js2-refactor ivy-rich ivy-hydra highlight-indent-guides go-mode git-timemachine git-modes eslintd-fix emmet-mode elpy editorconfig dotenv-mode doom-themes doom-modeline dokuwiki-mode dockerfile-mode diminish dashboard dap-mode crystal-mode counsel company-quickhelp company-php apache-mode anzu)))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
3
init.el
3
init.el
@ -119,7 +119,8 @@
|
|||||||
(require 'init-dotenv)
|
(require 'init-dotenv)
|
||||||
(require 'init-dockerfile)
|
(require 'init-dockerfile)
|
||||||
(require 'init-dokuwiki)
|
(require 'init-dokuwiki)
|
||||||
(require 'init-linter))
|
(require 'init-linter)
|
||||||
|
(require 'init-load-env-vars))
|
||||||
|
|
||||||
;;; Custom variables
|
;;; Custom variables
|
||||||
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
|
||||||
|
@ -16,11 +16,11 @@
|
|||||||
:custom
|
:custom
|
||||||
(lsp-clients-angular-language-server-command
|
(lsp-clients-angular-language-server-command
|
||||||
'("node"
|
'("node"
|
||||||
("~/virtualenvs/ndjs/lib/node_modules/@angular/language-server")
|
(getenv "ANGULAR_SERVER_DIR")
|
||||||
"--ngProbeLocations"
|
"--ngProbeLocations"
|
||||||
("~/virtualenvs/ndjs/lib/node_modules")
|
(getenv "NODEJS_MODULE_DIR")
|
||||||
"--tsProbeLocations"
|
"--tsProbeLocations"
|
||||||
("~/virtualenvs/ndjs/lib/node_modules")
|
(getenv "NODEJS_MODULE_DIR")
|
||||||
"--stdio"))
|
"--stdio"))
|
||||||
(lsp-diagnostics-provider :none)
|
(lsp-diagnostics-provider :none)
|
||||||
:commands (lsp lsp-deferred))
|
:commands (lsp lsp-deferred))
|
||||||
|
12
modules/init-load-env-vars.el
Normal file
12
modules/init-load-env-vars.el
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
;;; init-load-env-vars.el --- .Emacs Configuration -*- lexical-binding: t -*-
|
||||||
|
;;; Commentary:
|
||||||
|
;;
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
|
;; load-env-vars
|
||||||
|
(use-package load-env-vars
|
||||||
|
:config
|
||||||
|
(load-env-vars "~/.emacs.d/.env"))
|
||||||
|
|
||||||
|
(provide 'init-load-env-vars)
|
||||||
|
;;; init-load-env-vars.el ends here
|
@ -3,9 +3,8 @@
|
|||||||
;; custom settings!!!
|
;; custom settings!!!
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
(setq user-full-name "LibreUser.")
|
(setq user-full-name (getenv "EMACS_USER"))
|
||||||
(setq user-mail-address "name@domain.com")
|
(setq user-mail-address (getenv "EMACS_EMAIL"))
|
||||||
|
|
||||||
;; Local Variables:
|
;; Local Variables:
|
||||||
;; byte-compile-warnings: (not free-vars)
|
;; byte-compile-warnings: (not free-vars)
|
||||||
;; End:
|
;; End:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user