diff --git a/configuration.org b/configuration.org index 05e43203004d00efe77a927813cae58463481dcf..989abce44bc57c57bff98d295d083b2a541db951 100644 --- a/configuration.org +++ b/configuration.org @@ -56,12 +56,6 @@ Sets who I am I use Melpa packages repositories, thus I need to add them to the =package-archives= list -For older emacs version, fix some gnutls algorithm priority - -#+BEGIN_SRC emacs-lisp -(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") -#+END_SRC - Then add package repositories #+BEGIN_SRC emacs-lisp @@ -157,6 +151,16 @@ Allow pressing only =y= instead of =yes= for fast answer to yes or no question (fset 'yes-or-no-p 'y-or-n-p) #+end_src +Remember where I was last time I edited a file +#+begin_src emacs-lisp +(save-place-mode 1) +#+end_src + +Never use graphical dialog box +#+begin_src emacs-lisp +(setq use-dialog-box nil) +#+end_src + ** MacOS As I often use Emacs on MacOS, I need the right option (alt) key to behave *as* an option key and @@ -325,8 +329,8 @@ Select the font I will use depending on the system (setq mh-font-variable "DejaVu Sans") ) ) -(set-face-attribute 'default nil :font mh-font-fixed :weight 'light :height 160) -(set-face-attribute 'fixed-pitch nil :font mh-font-fixed :weight 'light :height 160) +(set-face-attribute 'default nil :font mh-font-fixed :weight 'light :height 140) +(set-face-attribute 'fixed-pitch nil :font mh-font-fixed :weight 'light :height 140) (set-face-attribute 'variable-pitch nil :font mh-font-variable :weight 'light :height 1.3) (set-frame-font mh-font-fixed nil t) #+end_src @@ -765,7 +769,6 @@ Turn off validate link in org html export: ) #+end_src - ** Source code evaluation @@ -1048,6 +1051,7 @@ Install =rust-mode= and set the rust language server to [[https://rust-analyzer. (use-package rust-mode :custom (lsp-rust-server 'rust-analyzer) + (lsp-inlay-hint-enable t) ) #+end_src @@ -1189,6 +1193,31 @@ cargo install slint-lsp (use-package protobuf-mode) #+end_src +** Shell + +Use =vterm= as a terminal emulator. Vterm needs to compile an external module. To build the module, +you need CMake and libtool. + +On debian/ubuntu like systems: + +#+begin_src shell +sudo apt install cmake libtool-bin +#+end_src + +On Macos with brew +#+begin_src shell +brew install libtool cmake +#+end_src + +#+begin_src emacs-lisp +(use-package vterm + :commands vterm + :custom + (vterm-always-compile-module t) + :bind + ("<f7>" . vterm)) +#+end_src + * Spell checking First, set =aspell= to be the spell checking program instead of =ispell=