summaryrefslogtreecommitdiff
path: root/home/dots/.emacs
diff options
context:
space:
mode:
authorMarc Coquand <marc@coquand.email>2024-11-28 22:00:54 +0200
committerMarc Coquand <marc@coquand.email>2024-11-28 22:00:54 +0200
commit83fbd0a23a104f4c9b8426f8ba424be53798d763 (patch)
treed4f253ef89008168cbd3e5176cb53bc0d7365954 /home/dots/.emacs
parent8a20306bd9fa6ee6d90aef016dcef9e7b1662c71 (diff)
downloadguix-83fbd0a23a104f4c9b8426f8ba424be53798d763.tar.gz
guix-83fbd0a23a104f4c9b8426f8ba424be53798d763.tar.bz2
guix-83fbd0a23a104f4c9b8426f8ba424be53798d763.zip
.
Diffstat (limited to 'home/dots/.emacs')
-rw-r--r--home/dots/.emacs33
1 files changed, 23 insertions, 10 deletions
diff --git a/home/dots/.emacs b/home/dots/.emacs
index e46303c..a835f4a 100644
--- a/home/dots/.emacs
+++ b/home/dots/.emacs
@@ -49,7 +49,7 @@
(unless (package-installed-p package)
(package-install package)))
-(load-theme 'BOGO-dark t)
+(load-theme 'BOGO t)
(use-package exwm
@@ -352,6 +352,7 @@
:defer t
:custom
(completion-cycle-threshold 5)
+ (completion-styles '('flex 'partial-completion 'initials 'emacs22))
(completion-ignore-case t))
(use-package pass
@@ -398,8 +399,10 @@
(use-package imenu
:defer t
- :config
- (setq imenu-auto-rescan t))
+ :bind
+ (("M-i" . imenu))
+ :custom
+ (imenu-auto-rescan t))
(defun sudo-shell-command (command)
(interactive "MShell command (root): ")
@@ -464,6 +467,7 @@
("d" . kill-word))
:custom
(repeat-on-final-keystroke t)
+ (repeat-echo-function 'repeat-echo-mode-line)
(set-mark-command-repeat-pop t)
(repeat-exit-key (kbd "i"))
:config
@@ -796,14 +800,22 @@
"Introspect"
#'ctrl-lock-off))
-(use-package ido
+(use-package icomplete
:bind
- (:repeat-map
- ido-next-buffer-repeat-map
- ("s" . ido-next-match)
- ("r" . ido-prev-match))
+ (:map minibuffer-mode-map
+ ("C-<return>" . icomplete-fido-exit)
+ :repeat-map fido-next-buffer-repeat-map
+ ("s" . icomplete-forward-completions)
+ ("r" . icomplete-backward-completions))
:init
- (ido-mode t))
+ (fido-mode t)
+ :custom
+ (icomplete-prospects-height 1)
+ (icomplete-compute-delay 0)
+ (icomplete-delay-completions-threshold 0.15)
+ (icomplete-separator ", ")
+ (icomplete-show-matches-on-no-input 't)
+ (icomplete-max-delay-chars 4))
(use-package calendar
:defer t
@@ -1188,7 +1200,7 @@
-1 "}"))
(use-package abbrev
- :after (skeleton go-mode)
+ :after (skeleton)
:diminish abbrev-mode
:init
(setq-default abbrev-mode t)
@@ -1208,6 +1220,7 @@
(define-abbrev go-mode-abbrev-table "2fo"
"" 'golang-for-loop))
+
(use-package flyspell
:diminish flyspell-mode
:defer t)