diff --git a/configuration.org b/configuration.org index 8aaa9812a7a7ac1e842d62ff10c4bbdad330f7df..667b9634817815ada038549b009c71f21dc0fcb9 100644 --- a/configuration.org +++ b/configuration.org @@ -274,10 +274,14 @@ Some of my configuration entries where borrowed from other people, see #+begin_src emacs-lisp (use-package fira-code-mode - :config (global-fira-code-mode)) + :config + (global-fira-code-mode) + (setq fira-code-mode-enable-hex-literal nil) + ) #+end_src + ** Modeline Use =moody= for a nice looking bottom modeline @@ -786,6 +790,7 @@ Some of my configuration entries where borrowed from other people, see ) #+end_src + For displaying more information directly in the buffer, I use =lsp-ui= #+begin_src emacs-lisp @@ -841,8 +846,24 @@ Some of my configuration entries where borrowed from other people, see ) #+end_src - For this to work, you need to install =rust-analyzer= in - =~/.cargo/bin=. + For this to work, you need to install =rust-analyzer= and =rustmft=. + + #+begin_src bash :results output verbatim +if [[ "$OSTYPE" =~ ^darwin ]] +then + echo "Installing for macos" + binary=rust-analyzer-mac +else + echo "Installing for linux" + binary=rust-analyzer-linux +fi +curl -L https://github.com/rust-analyzer/rust-analyzer/releases/latest/download/$binary -o ~/.cargo/bin/rust-analyzer +chmod +x ~/.cargo/bin/rust-analyzer + #+end_src + + #+RESULTS: + : Installing for macos + Adds cargo installed binaries to exec path