Add emacs
This commit is contained in:
parent
f1dcd9e194
commit
3de35322f6
3 changed files with 58 additions and 5 deletions
57
home-manager/emacs.el
Normal file
57
home-manager/emacs.el
Normal file
|
|
@ -0,0 +1,57 @@
|
||||||
|
; Aesthetics
|
||||||
|
(use-package material-theme)
|
||||||
|
(load-theme 'material t)
|
||||||
|
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
|
||||||
|
;; Window navigation
|
||||||
|
(windmove-default-keybindings)
|
||||||
|
|
||||||
|
;; Autocompletion with vertico
|
||||||
|
(use-package vertico
|
||||||
|
:custom
|
||||||
|
(vertico-count 20) ;; limit to a fixed size
|
||||||
|
:bind (:map vertico-map
|
||||||
|
;; Use page-up/down to scroll vertico buffer, like ivy does by default.
|
||||||
|
("<prior>" . 'vertico-scroll-down)
|
||||||
|
("<next>" . 'vertico-scroll-up))
|
||||||
|
:init
|
||||||
|
;; Activate vertico
|
||||||
|
(vertico-mode))
|
||||||
|
|
||||||
|
;; Convenient path selection
|
||||||
|
(use-package vertico-directory
|
||||||
|
:after vertico
|
||||||
|
:ensure nil ;; no need to install, it comes with vertico
|
||||||
|
:bind (:map vertico-map
|
||||||
|
("DEL" . vertico-directory-delete-char)))
|
||||||
|
|
||||||
|
(use-package orderless
|
||||||
|
:custom
|
||||||
|
;; Activate orderless completion
|
||||||
|
(completion-styles '(orderless basic))
|
||||||
|
;; Enable partial completion for file wildcard support
|
||||||
|
(completion-category-overrides '((file (styles partial-completion)))))
|
||||||
|
|
||||||
|
(use-package consult
|
||||||
|
:custom
|
||||||
|
;; Disable preview
|
||||||
|
(consult-preview-key nil)
|
||||||
|
:bind
|
||||||
|
(("C-x b" . 'consult-buffer) ;; Switch buffer, including recentf and bookmarks
|
||||||
|
("M-l" . 'consult-git-grep) ;; Search inside a project
|
||||||
|
("M-y" . 'consult-yank-pop) ;; Paste by selecting the kill-ring
|
||||||
|
("M-s" . 'consult-line) ;; Search current buffer, like swiper
|
||||||
|
))
|
||||||
|
|
||||||
|
(use-package embark
|
||||||
|
:bind
|
||||||
|
(("C-." . embark-act) ;; Begin the embark process
|
||||||
|
("C-;" . embark-dwim) ;; good alternative: M-.
|
||||||
|
("C-h B" . embark-bindings)) ;; alternative for `describe-bindings'
|
||||||
|
:config
|
||||||
|
(use-package embark-consult))
|
||||||
|
|
||||||
|
;; ORG-MODE
|
||||||
|
(setq org-replace-disputed-keys t)
|
||||||
|
|
@ -30,7 +30,6 @@
|
||||||
pkgs.ktailctl
|
pkgs.ktailctl
|
||||||
pkgs.kitty
|
pkgs.kitty
|
||||||
pkgs.hyprpaper
|
pkgs.hyprpaper
|
||||||
pkgs.kdeconnect
|
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.emacs = {
|
programs.emacs = {
|
||||||
|
|
@ -52,9 +51,6 @@
|
||||||
extraConfig = builtins.readFile ./emacs.el;
|
extraConfig = builtins.readFile ./emacs.el;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.kdeconnect.enable = true;
|
|
||||||
|
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
|
|
||||||
# Enable home-manager and git
|
# Enable home-manager and git
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
|
|
||||||
"$mod, f, exec, ${pkgs.firefox}/bin/firefox"
|
"$mod, f, exec, ${pkgs.firefox}/bin/firefox"
|
||||||
"$mod, e, exec, ${pkgs.emacs}/bin/emacs"
|
"$mod, e, exec, ${pkgs.emacs}/bin/emacs"
|
||||||
"$mod, s, exec, ${pkgs.stean}/bin/steam"
|
"$mod, s, exec, ${pkgs.steam}/bin/steam"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue