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

Add more tweaks for default behavior and add vterm package

parent 026f2e8b
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ Then add package repositories ...@@ -60,7 +60,7 @@ Then add package repositories
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(require 'package) (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) (add-to-list 'package-archives '("nongnu" . "https://elpa.nongnu.org/nongnu/") t)
(unless (fboundp 'package-activate-all) (package-initialize)) (unless (fboundp 'package-activate-all) (package-initialize))
#+END_SRC #+END_SRC
...@@ -156,6 +156,11 @@ Remember where I was last time I edited a file ...@@ -156,6 +156,11 @@ Remember where I was last time I edited a file
(save-place-mode 1) (save-place-mode 1)
#+end_src #+end_src
Never use graphical dialog box
#+begin_src emacs-lisp
(setq use-dialog-box nil)
#+end_src
** MacOS ** MacOS
As I often use Emacs on MacOS, I need the right option (alt) key to behave *as* an option key and 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 ...@@ -324,8 +329,8 @@ Select the font I will use depending on the system
(setq mh-font-variable "DejaVu Sans") (setq mh-font-variable "DejaVu Sans")
) )
) )
(set-face-attribute 'default 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 160) (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-face-attribute 'variable-pitch nil :font mh-font-variable :weight 'light :height 1.3)
(set-frame-font mh-font-fixed nil t) (set-frame-font mh-font-fixed nil t)
#+end_src #+end_src
...@@ -1041,11 +1046,11 @@ Set indentation size and parameters ...@@ -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]] Install =rust-mode= and set the rust language server to [[https://rust-analyzer.github.io/][rust-analyzer]]
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package rust-mode (use-package rust-mode
:custom :custom
(lsp-rust-server 'rust-analyzer) (lsp-rust-server 'rust-analyzer)
(lsp-inlay-hint-enable t) (lsp-inlay-hint-enable t)
) )
#+end_src #+end_src
For this to work, you need to install =rust-analyzer= and =rustmft=. This can be done using 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 ...@@ -1186,6 +1191,31 @@ cargo install slint-lsp
(use-package protobuf-mode) (use-package protobuf-mode)
#+end_src #+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 * Spell checking
First, set =aspell= to be the spell checking program instead of =ispell= First, set =aspell= to be the spell checking program instead of =ispell=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment