diff --git a/configuration.org b/configuration.org index 10d2bcb4e010f0cfcf6ef0485d913698bdaba1c7..b05224fc54d38882682c88853a858ec7f832f4c6 100644 --- a/configuration.org +++ b/configuration.org @@ -60,7 +60,7 @@ Then add package repositories #+BEGIN_SRC emacs-lisp (require 'package) - ; (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) +(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t) (unless (fboundp 'package-activate-all) (package-initialize)) #+END_SRC @@ -156,6 +156,11 @@ Remember where I was last time I edited a file (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 @@ -324,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 @@ -1041,11 +1046,11 @@ Set indentation size and parameters Install =rust-mode= and set the rust language server to [[https://rust-analyzer.github.io/][rust-analyzer]] #+begin_src emacs-lisp - (use-package rust-mode - :custom - (lsp-rust-server 'rust-analyzer) - (lsp-inlay-hint-enable t) - ) +(use-package rust-mode + :custom + (lsp-rust-server 'rust-analyzer) + (lsp-inlay-hint-enable t) + ) #+end_src For this to work, you need to install =rust-analyzer= and =rustmft=. This can be done using @@ -1186,6 +1191,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=