mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
chore: improve electric-pair-mode in Emacs
This commit is contained in:
parent
ab4c219ab1
commit
fac5468ced
3 changed files with 157 additions and 147 deletions
|
|
@ -7941,6 +7941,8 @@ I also define some keybinds to some combinations directly. Those are used mostly
|
||||||
"w/" 'evil-window-vsplit
|
"w/" 'evil-window-vsplit
|
||||||
"w-" 'evil-window-split
|
"w-" 'evil-window-split
|
||||||
"wm" '(delete-other-windows :wk "maximize")
|
"wm" '(delete-other-windows :wk "maximize")
|
||||||
|
"<right>" 'up-list
|
||||||
|
"<left>" 'down-list
|
||||||
))
|
))
|
||||||
|
|
||||||
;; General often used hotkeys
|
;; General often used hotkeys
|
||||||
|
|
@ -9568,9 +9570,9 @@ I am not completely sure on electric-pair-mode yet, sometimes it is very helpful
|
||||||
(global-highlight-parentheses-mode t))
|
(global-highlight-parentheses-mode t))
|
||||||
|
|
||||||
(electric-pair-mode 1)
|
(electric-pair-mode 1)
|
||||||
(setq electric-pair-preserve-balance nil)
|
(setq electric-pair-preserve-balance t)
|
||||||
;; don't try to be overly smart
|
(setq electric-pair-skip-self nil)
|
||||||
(setq electric-pair-delete-adjacent-pairs nil)
|
(setq electric-pair-delete-adjacent-pairs t)
|
||||||
;; don't skip newline when auto-pairing parenthesis
|
;; don't skip newline when auto-pairing parenthesis
|
||||||
(setq electric-pair-skip-whitespace-chars '(9 32))
|
(setq electric-pair-skip-whitespace-chars '(9 32))
|
||||||
|
|
||||||
|
|
@ -9580,6 +9582,8 @@ I am not completely sure on electric-pair-mode yet, sometimes it is very helpful
|
||||||
`(lambda (c)
|
`(lambda (c)
|
||||||
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
|
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
*** rainbow-mode
|
*** rainbow-mode
|
||||||
|
|
|
||||||
18
index.html
18
index.html
|
|
@ -3,7 +3,7 @@
|
||||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||||
<head>
|
<head>
|
||||||
<!-- 2024-06-28 Fr 00:09 -->
|
<!-- 2024-06-28 Fr 22:14 -->
|
||||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>SwarselSystems: NixOS + Emacs Configuration</title>
|
<title>SwarselSystems: NixOS + Emacs Configuration</title>
|
||||||
|
|
@ -369,7 +369,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>
|
<p>
|
||||||
<b>This file has 40441 words spanning 10468 lines and was last revised on 2024-06-28 00:09:44 +0200.</b>
|
<b>This file has 40447 words spanning 10472 lines and was last revised on 2024-06-28 22:13:57 +0200.</b>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|
@ -419,7 +419,7 @@ This section defines my Emacs configuration. For a while, I considered to use ry
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-06-28 00:09:44 +0200)
|
My emacs is built using the emacs-overlay nix flake, which builds a bleeding edge emacs on wayland (pgtk) with utilities like treesitter support. By executing the below source block, the current build setting can be updated at any time, and you can see my most up-to-date build options (last updated: 2024-06-28 22:13:57 +0200)
|
||||||
</p></li>
|
</p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
@ -9687,6 +9687,8 @@ I also define some keybinds to some combinations directly. Those are used mostly
|
||||||
"w/" 'evil-window-vsplit
|
"w/" 'evil-window-vsplit
|
||||||
"w-" 'evil-window-split
|
"w-" 'evil-window-split
|
||||||
"wm" '(delete-other-windows :wk "maximize")
|
"wm" '(delete-other-windows :wk "maximize")
|
||||||
|
"<right>" 'up-list
|
||||||
|
"<left>" 'down-list
|
||||||
))
|
))
|
||||||
|
|
||||||
;; General often used hotkeys
|
;; General often used hotkeys
|
||||||
|
|
@ -11531,9 +11533,9 @@ I am not completely sure on electric-pair-mode yet, sometimes it is very helpful
|
||||||
(global-highlight-parentheses-mode t))
|
(global-highlight-parentheses-mode t))
|
||||||
|
|
||||||
(electric-pair-mode 1)
|
(electric-pair-mode 1)
|
||||||
(setq electric-pair-preserve-balance nil)
|
(setq electric-pair-preserve-balance t)
|
||||||
;; don't try to be overly smart
|
(setq electric-pair-skip-self nil)
|
||||||
(setq electric-pair-delete-adjacent-pairs nil)
|
(setq electric-pair-delete-adjacent-pairs t)
|
||||||
;; don't skip newline when auto-pairing parenthesis
|
;; don't skip newline when auto-pairing parenthesis
|
||||||
(setq electric-pair-skip-whitespace-chars '(9 32))
|
(setq electric-pair-skip-whitespace-chars '(9 32))
|
||||||
|
|
||||||
|
|
@ -11543,6 +11545,8 @@ I am not completely sure on electric-pair-mode yet, sometimes it is very helpful
|
||||||
`(lambda (c)
|
`(lambda (c)
|
||||||
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
|
(if (char-equal c ?<) t (,electric-pair-inhibit-predicate c))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -12546,7 +12550,7 @@ This sets up the <code>dashboard</code>, which is really quite useless. But, it
|
||||||
</div>
|
</div>
|
||||||
<div id="postamble" class="status">
|
<div id="postamble" class="status">
|
||||||
<p class="author">Author: Leon Schwarzäugl</p>
|
<p class="author">Author: Leon Schwarzäugl</p>
|
||||||
<p class="date">Created: 2024-06-28 Fr 00:09</p>
|
<p class="date">Created: 2024-06-28 Fr 22:14</p>
|
||||||
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
<p class="validation"><a href="https://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
||||||
|
|
@ -329,6 +329,8 @@ create a new one."
|
||||||
"w/" 'evil-window-vsplit
|
"w/" 'evil-window-vsplit
|
||||||
"w-" 'evil-window-split
|
"w-" 'evil-window-split
|
||||||
"wm" '(delete-other-windows :wk "maximize")
|
"wm" '(delete-other-windows :wk "maximize")
|
||||||
|
"<right>" 'up-list
|
||||||
|
"<left>" 'down-list
|
||||||
))
|
))
|
||||||
|
|
||||||
;; General often used hotkeys
|
;; General often used hotkeys
|
||||||
|
|
@ -1183,9 +1185,9 @@ create a new one."
|
||||||
(global-highlight-parentheses-mode t))
|
(global-highlight-parentheses-mode t))
|
||||||
|
|
||||||
(electric-pair-mode 1)
|
(electric-pair-mode 1)
|
||||||
(setq electric-pair-preserve-balance nil)
|
(setq electric-pair-preserve-balance t)
|
||||||
;; don't try to be overly smart
|
(setq electric-pair-skip-self nil)
|
||||||
(setq electric-pair-delete-adjacent-pairs nil)
|
(setq electric-pair-delete-adjacent-pairs t)
|
||||||
;; don't skip newline when auto-pairing parenthesis
|
;; don't skip newline when auto-pairing parenthesis
|
||||||
(setq electric-pair-skip-whitespace-chars '(9 32))
|
(setq electric-pair-skip-whitespace-chars '(9 32))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue