Added pinentry, vertico, dired stuff, savehist, consult, transparency,

vterm, eshell, etc.
This commit is contained in:
opal
2021-12-23 00:12:36 -08:00
parent b8c7f3389b
commit feb2a41a4a
3 changed files with 303 additions and 68 deletions

View File

@@ -32,8 +32,8 @@
(set-default 'truncate-lines nil) ;; Wrap lines at end of screen
(setq visible-bell t) ;; Visible flash to represent a bell
(setq x-select-enable-clipboard t) ;; Enable clipboard
(global-tab-line-mode 1) ;; Enable Tabs
(setq inhibit-startup-message t) ;; No startup message
(global-tab-line-mode 1)
(setq inhibit-startup-message t)
;; Disable line mode for specific major/minor modes.
(dolist (mode '(org-mode-hook))
@@ -42,6 +42,11 @@
'eshell-mode-hook
(add-hook mode (lambda () (display-line-numbers-mode 0))))
(set-frame-parameter (selected-frame) 'alpha '(90 . 90))
(add-to-list 'default-frame-alist '(alpha . (90 . 90)))
(set-frame-parameter (selected-frame) 'fullscreen 'maximized)
(add-to-list 'default-frame-alist '(fullscreen . maximized))
(use-package doom-modeline
:straight t
:init (doom-modeline-mode 1)
@@ -89,6 +94,12 @@
(setq global-auto-revert-non-file-buffers nil)
(global-auto-revert-mode -1)
(use-package pinentry :straight t)
(setq epa-pinentry-mode 'loopback)
(pinentry-start)
(setq tramp-default-method "ssh")
(use-package modus-themes
:straight t
:init
@@ -133,9 +144,9 @@
"u" #'universal-argument ;; Universal argument
"w" #'evil-window-map ;; Window functions
"." #'find-file ;; Find file (opens in mini-buffer)
"," #'persp-switch-to-buffer ;; Switch to perspective.el minibuffer
"," #'consult-buffer ;; Switch to buffer
"<" #'switch-to-buffer ;; Switch to non-perspective.el minibuffer
"s" #'swiper ;; Search in current buffer
"s" #'consult-line ;; Search in current buffer
;; Magit
"gg" #'magit-status
@@ -197,38 +208,75 @@
:config
(evil-collection-init))
(use-package ivy
:straight t
:diminish
:bind (("C-s" . 'swiper)
:map ivy-minibuffer-map
("TAB" . ivy-alt-done)
("C-l" . ivy-alt-done)
("C-j" . ivy-next-line)
("C-k" . ivy-previous-line)
:map ivy-switch-buffer-map
("C-k" . ivy-previous-line)
("C-l" . ivy-done)
("C-d" . ivy-reverse-i-search-kill))
:config
(ivy-mode 1))
(use-package ivy-rich
:straight t
:after ivy
:init (ivy-rich-mode 1))
(use-package counsel
;; Enable vertico
(use-package vertico
:straight t
:bind
(("C-M-j" . 'counsel-switch-buffer)
:map minibuffer-local-map
("C-r" . 'counsel-minibuffer-history))
(:map vertico-map
("C-j" . vertico-next)
("C-k" . vertico-previous))
:init
(vertico-mode)
(setq vertico-scroll-margin 0) ;; Scroll margin
(setq vertico-count 10) ;; Candidates
(setq vertico-cycle t)) ;; Enable cycling
:custom
(counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
;; (use-package ivy
;; :straight t
;; :bind (("C-s" . 'swiper)
;; :map ivy-minibuffer-map
;; ("TAB" . ivy-alt-done)
;; ("C-l" . ivy-alt-done)
;; ("C-j" . ivy-next-line)
;; ("C-k" . ivy-previous-line)
;; :map ivy-switch-buffer-map
;; ("C-k" . ivy-previous-line)
;; ("C-l" . ivy-done)
;; ("C-d" . ivy-reverse-i-search-kill))
;; :config
;; (ivy-mode 1))
;; (use-package ivy-rich
;; :straight t
;; :after ivy
;; :init (ivy-rich-mode 1))
(use-package orderless
:straight t
:init
(setq completion-styles '(orderless)
completion-category-defaults nil
completion-category-overrides '((file (styles partial-completion)))))
(use-package savehist
:straight t
:init
(savehist-mode))
(use-package consult
:straight t
:defer t
:bind
(("C-s" . consult-line))
:config
(counsel-mode 1))
(setq
consult-narrow-key "<"
consult-line-numbers-widen t
consult-async-min-input 2
consult-async-refresh-delay 0.15
consult-async-input-throttle 0.2
consult-async-input-debounce 0.1))
;; (use-package counsel
;; :straight t
;; :bind
;; (("C-M-j" . 'counsel-switch-buffer)
;; :map minibuffer-local-map
;; ("C-r" . 'counsel-minibuffer-history))
;; :custom
;; (counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only)
;; :config
;; (counsel-mode 1))
;; Set org agenda dir
(setq org-directory "~/Org/")
@@ -395,6 +443,13 @@
(use-package flycheck :straight t)
(setq-default tab-width 2) ;; Set tab indent to 2
(setq-default evil-shift-width tab-width) ;; Ensure evil matches tab-width
(setq-default indent-tabs-mode nil) ;; Use spaces instead of tabs
;; Clean up whitespace
(use-package ws-butler :straight t)
(use-package rainbow-delimiters
:straight t
:init
@@ -466,3 +521,15 @@
;; erc-interpret-mirc-color t
;; erc-rename-buffers t
;; erc-track-exclude-server-buffer t))
(use-package openwith
:straight t
:config
(setq openwith-associations
(list
(openwith-make-extension-regexp
'("pdf"))
"zathura"
'(file))))

View File

@@ -12,4 +12,5 @@ export XDG_DATA_HOME=~/.local/share
export XDG_STATE_HOME=~/.config/zsh
export EDITOR=nvim
export VISUAL=nvim
export GUIX_PROFILE="$HOME/.config/guix/current" . "$GUIX_PROFILE/etc/profile"
export GUIX_PROFILE="$HOME/.config/guix/current"
. "$GUIX_PROFILE/etc/profile"