(feat) add direnv mode to emacs config
This commit is contained in:
parent
92cfcc96e6
commit
13b5a8fe8c
|
@ -10,22 +10,22 @@
|
|||
|
||||
(require `package)
|
||||
|
||||
(setq package-archives `(("mepla" . "https://melpa.org/packages/")
|
||||
(setq package-archives `(("mepla" . "https://melpa.org/packages/")
|
||||
("org" . "https://orgmode.org/elpa/")
|
||||
("elpa" . "https://elpa.gnu.org/packages/")))
|
||||
|
||||
(package-initialize)
|
||||
(package-initialize)
|
||||
|
||||
(unless (package-installed-p 'use-package)
|
||||
(unless (package-installed-p 'use-package)
|
||||
(progn
|
||||
(package-refresh-contents)
|
||||
(package-install 'use-package)))
|
||||
|
||||
(require 'use-package)
|
||||
(setq use-package-always-ensure t)
|
||||
(require 'use-package)
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
;; TODO add better detection to this
|
||||
(when (eq system-type 'windows-nt)
|
||||
;; TODO add better detection to this
|
||||
(when (eq system-type 'windows-nt)
|
||||
(message "setting up straight.el")
|
||||
(defvar bootstrap-version)
|
||||
(let ((bootstrap-file
|
||||
|
@ -834,6 +834,13 @@ this should be useful later
|
|||
:config
|
||||
(treemacs-load-theme "nerd-icons"))
|
||||
#+end_src
|
||||
** Direnv
|
||||
#+begin_src emacs-lisp
|
||||
(when (eq system-type 'gnu/linux)
|
||||
(use-package direnv
|
||||
:config
|
||||
(direnv-mode)))
|
||||
#+end_src
|
||||
* Languages
|
||||
#+begin_src emacs-lisp
|
||||
(message "Reached languages")
|
||||
|
|
Loading…
Reference in a new issue