Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
b7b52866
Commit
b7b52866
authored
2 months ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+38
-8
38 additions, 8 deletions
configuration.org
with
38 additions
and
8 deletions
configuration.org
+
38
−
8
View file @
b7b52866
...
@@ -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 1
6
0)
(set-face-attribute 'default nil :font mh-font-fixed :weight 'light :height 1
4
0)
(set-face-attribute 'fixed-pitch nil :font mh-font-fixed :weight 'light :height 1
6
0)
(set-face-attribute 'fixed-pitch nil :font mh-font-fixed :weight 'light :height 1
4
0)
(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=
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment