Skip to content
Snippets Groups Projects
Commit 5292e2cd authored by Michael Hauspie's avatar Michael Hauspie
Browse files

Use exec-path-from-shell to change exec-path

parent 9e552e65
Branches
No related tags found
No related merge requests found
......@@ -260,6 +260,21 @@ Set the line width for fill command
#+end_src
** Environement
Ensure that Emacs uses the path from my shell (especially when using MacOS)
#+begin_src emacs-lisp
(use-package exec-path-from-shell
:custom
(shell-file-name "/bin/zsh")
(exec-path-from-shell-variables '("PATH" "MANPATH" "PKG_CONFIG_PATH")
:init
(if (string-equal system-type "darwin")
(exec-path-from-shell-initialize)))
)
#+end_src
* UI and visual tweaks
** Changes to builtin visuals
......@@ -660,11 +675,13 @@ Don't ask before evaluating
(setq org-confirm-babel-evaluate nil)
#+end_src
Correctly associate =dot= language with the correct major-mode inside org.
Correctly associate some language with the correct major-mode inside org.
#+begin_src emacs-lisp
(use-package graphviz-dot-mode)
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot))
(use-package graphviz-dot-mode)
(add-to-list 'org-src-lang-modes '("dot" . graphviz-dot))
(add-to-list 'org-src-lang-modes '("properties" . conf))
(add-to-list 'org-src-lang-modes '("unixconfig" . conf))
#+end_src
Make org mode correctly export quotes
......@@ -900,12 +917,6 @@ Install =rust-mode= and set the rust language server to [[https://rust-analyzer.
For this to work, you need to install =rust-analyzer= and =rustmft=. This can be done using
=rustup=.
Adds cargo installed binaries to exec path
#+begin_src emacs-lisp
(setq exec-path (cons "~/.cargo/bin" exec-path))
#+end_src
*** Lua
Simply add =lua-mode=
......@@ -975,12 +986,6 @@ Use =auctex= for better experience editing latex files
)
#+end_src
If using macos, add mactex to =exec-path=
#+begin_src emacs-lisp
(when (eq system-type 'darwin)
(setq exec-path (cons "/Library/TeX/texbin" exec-path)))
#+end_src
*** Ningx configuration
......@@ -1096,12 +1101,6 @@ Using grammalecte with flycheck
* Misc.
Adds =/usr/local/bin= to Emacs =exec-path=
#+begin_src emacs-lisp
(setq exec-path (cons "/usr/local/bin" exec-path))
#+end_src
Starts Emacs server so that we can use =emacsclient= for opening new
files.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment