aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar pinoinha <pinoinha@disroot.org> 2024-02-20 19:34:27 +0000
committerGravatar pinoinha <pinoinha@disroot.org> 2024-02-20 19:34:27 +0000
commit606cbfbebce3321147b0a4dc11f80a5b2d30e831 (patch)
tree7adec81f27fca34e0b58f405b2aae633e9608feb
parentafa44d08b40f0fcdaea6414986706de7a687f19f (diff)
configuraƧoes do emacs
-rw-r--r--.gitignore15
-rw-r--r--emacs/early-init.el40
-rw-r--r--emacs/init.el614
3 files changed, 669 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 6927840..583f27f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,3 +35,18 @@ fish/functions/_*
fish/functions/fzf_*
fish/functions/fisher*
fish/completions
+
+emacs/elpa
+emacs/eln-cache
+emacs/emacs-backup
+emacs/auto-save-list
+emacs/.cache
+emacs/recentf
+emacs/eshell
+emacs/history
+emacs/transient/history.el
+emacs/%backup%
+emacs/tree-sitter
+emacs/org-roam.db
+emacs/projects
+emacs/tramp \ No newline at end of file
diff --git a/emacs/early-init.el b/emacs/early-init.el
new file mode 100644
index 0000000..08bf438
--- /dev/null
+++ b/emacs/early-init.el
@@ -0,0 +1,40 @@
+;;; ________ _______ __ __
+;;; / | / \ / | / |
+;;; $$$$$$$$/ _____ ____ ______ _______ _______ $$$$$$$ | ______ ____$$ | ______ ______ _______$$ | __
+;;; $$ |__ / \/ \ / \ / |/ | $$ |__$$ |/ \ / $$ |/ \ / \ / $$ | / |
+;;; $$ | $$$$$$ $$$$ |$$$$$$ /$$$$$$$//$$$$$$$/ $$ $$</$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$/$$ |_/$$/
+;;; $$$$$/ $$ | $$ | $$ |/ $$ $$ | $$ \ $$$$$$$ $$ $$ $$ | $$ $$ | $$/$$ | $$ $$ | $$ $$<
+;;; $$ |_____$$ | $$ | $$ /$$$$$$$ $$ \_____ $$$$$$ | $$ |__$$ $$$$$$$$/$$ \__$$ $$ | $$ \__$$ $$ \_____$$$$$$ \
+;;; $$ $$ | $$ | $$ $$ $$ $$ / $$/ $$ $$/$$ $$ $$ $$ | $$ $$/$$ $$ | $$ |
+;;; $$$$$$$$/$$/ $$/ $$/ $$$$$$$/ $$$$$$$/$$$$$$$/ $$$$$$$/ $$$$$$$/ $$$$$$$/$$/ $$$$$$/ $$$$$$$/$$/ $$/
+
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Basic settings for quick startup and convenience
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Startup speed, annoyance suppression
+(setq gc-cons-threshold 10000000)
+(setq byte-compile-warnings '(not obsolete))
+(setq warning-suppress-log-types '((comp) (bytecomp)))
+(setq native-comp-async-report-warnings-errors 'silent)
+
+;; Silence stupid startup message
+(setq inhibit-startup-echo-area-message (user-login-name))
+
+;; Default frame configuration: full screen, good-looking title bar on macOS
+(setq frame-resize-pixelwise t)
+(tool-bar-mode -1) ; All these tools are in the menu-bar anyway
+(setq default-frame-alist '((fullscreen . maximized)
+
+ ;; You can turn off scroll bars by uncommenting these lines:
+ ;; (vertical-scroll-bars . nil)
+ ;; (horizontal-scroll-bars . nil)
+
+ ;; Setting the face in here prevents flashes of
+ ;; color as the theme gets activated
+ (background-color . "#000000")
+ (ns-appearance . dark)
+ (ns-transparent-titlebar . t)))
diff --git a/emacs/init.el b/emacs/init.el
new file mode 100644
index 0000000..6a24ca4
--- /dev/null
+++ b/emacs/init.el
@@ -0,0 +1,614 @@
+;;; ________ _______ __ __
+;;; / | / \ / | / |
+;;; $$$$$$$$/ _____ ____ ______ _______ _______ $$$$$$$ | ______ ____$$ | ______ ______ _______$$ | __
+;;; $$ |__ / \/ \ / \ / |/ | $$ |__$$ |/ \ / $$ |/ \ / \ / $$ | / |
+;;; $$ | $$$$$$ $$$$ |$$$$$$ /$$$$$$$//$$$$$$$/ $$ $$</$$$$$$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$/$$ |_/$$/
+;;; $$$$$/ $$ | $$ | $$ |/ $$ $$ | $$ \ $$$$$$$ $$ $$ $$ | $$ $$ | $$/$$ | $$ $$ | $$ $$<
+;;; $$ |_____$$ | $$ | $$ /$$$$$$$ $$ \_____ $$$$$$ | $$ |__$$ $$$$$$$$/$$ \__$$ $$ | $$ \__$$ $$ \_____$$$$$$ \
+;;; $$ $$ | $$ | $$ $$ $$ $$ / $$/ $$ $$/$$ $$ $$ $$ | $$ $$/$$ $$ | $$ |
+;;; $$$$$$$$/$$/ $$/ $$/ $$$$$$$/ $$$$$$$/$$$$$$$/ $$$$$$$/ $$$$$$$/ $$$$$$$/$$/ $$$$$$/ $$$$$$$/$$/ $$/
+
+;;; Minimal init.el
+
+;;; Contents:
+;;;
+;;; - Basic settings
+;;; - Discovery aids
+;;; - Minibuffer/completion settings
+;;; - Interface enhancements/defaults
+;;; - Tab-bar configuration
+;;; - Theme
+;;; - Optional extras
+;;; - Built-in customization framework
+
+(when (< emacs-major-version 29)
+ (error (format "Emacs Bedrock only works with Emacs 29 and newer; you have version ~a" emacs-major-version)))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Basic settings
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Package initialization
+;;
+;; We'll stick to the built-in GNU and non-GNU ELPAs (Emacs Lisp Package
+;; Archive) for the base install, but there are some other ELPAs you could look
+;; at if you want more packages. MELPA in particular is very popular. See
+;; instructions at:
+;;
+;; https://melpa.org/#/getting-started
+;;
+;; You can simply uncomment the following if you'd like to get started with
+;; MELPA packages quickly:
+;;
+(with-eval-after-load 'package
+ (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t))
+
+;; If you want to turn off the welcome screen, uncomment this
+(setopt inhibit-splash-screen t)
+
+(setopt initial-major-mode 'fundamental-mode) ; default mode for the *scratch* buffer
+(setopt display-time-default-load-average nil) ; this information is useless for most
+
+;; Automatically reread from disk if the underlying file changes
+(setopt auto-revert-avoid-polling t)
+;; Some systems don't do file notifications well; see
+;; https://todo.sr.ht/~ashton314/emacs-bedrock/11
+(setopt auto-revert-interval 5)
+(setopt auto-revert-check-vc-info t)
+(global-auto-revert-mode)
+
+;; Save history of minibuffer
+(savehist-mode)
+
+;; Move through windows with Ctrl-<arrow keys>
+(windmove-default-keybindings 'control) ; You can use other modifiers here
+
+;; Fix archaic defaults
+(setopt sentence-end-double-space nil)
+
+;; Make right-click do something sensible
+(when (display-graphic-p)
+ (context-menu-mode))
+
+;; Don't litter file system with *~ backup files; put them all inside
+;; ~/.emacs.d/backup or wherever
+(defun bedrock--backup-file-name (fpath)
+ "Return a new file path of a given file path.
+If the new path's directories does not exist, create them."
+ (let* ((backupRootDir "~/.emacs.d/emacs-backup/")
+ (filePath (replace-regexp-in-string "[A-Za-z]:" "" fpath )) ; remove Windows driver letter in path
+ (backupFilePath (replace-regexp-in-string "//" "/" (concat backupRootDir filePath "~") )))
+ (make-directory (file-name-directory backupFilePath) (file-name-directory backupFilePath))
+ backupFilePath))
+(setopt make-backup-file-name-function 'bedrock--backup-file-name)
+
+(setq epg-pinentry-mode 'loopback)
+
+(setopt use-short-answers t)
+
+(add-to-list 'load-path "~/.emacs.d/elisp/")
+(add-to-list 'exec-path "~/.local/share/asdf/shims/")
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Discovery aids
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Show the help buffer after startup
+(add-hook 'after-init-hook 'help-quick)
+
+;; which-key: shows a popup of available keybindings when typing a long key
+;; sequence (e.g. C-x ...)
+(use-package which-key
+ :ensure t
+ :config
+ (which-key-mode))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Minibuffer/completion settings
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; For help, see: https://www.masteringemacs.org/article/understanding-minibuffer-completion
+
+(setopt enable-recursive-minibuffers t) ; Use the minibuffer whilst in the minibuffer
+(setopt completion-cycle-threshold 1) ; TAB cycles candidates
+(setopt completions-detailed t) ; Show annotations
+(setopt tab-always-indent 'complete) ; When I hit TAB, try to complete, otherwise, indent
+(setopt completion-styles '(basic initials substring)) ; Different styles to match input to candidates
+
+(setopt completion-auto-help 'always) ; Open completion always; `lazy' another option
+(setopt completions-max-height 20) ; This is arbitrary
+(setopt completions-detailed t)
+(setopt completions-format 'one-column)
+(setopt completions-group t)
+(setopt completion-auto-select 'second-tab) ; Much more eager
+ ;(setopt completion-auto-select t) ; See `C-h v completion-auto-select' for more possible values
+
+(keymap-set minibuffer-mode-map "TAB" 'minibuffer-complete) ; TAB acts more like how it does in the shell
+
+;; For a fancier built-in completion option, try ido-mode,
+;; icomplete-vertical, or fido-mode. See also the file extras/base.el
+
+ ;(icomplete-vertical-mode)
+ ;(fido-vertical-mode)
+ ;(setopt icomplete-delay-completions-threshold 4000)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Interface enhancements/defaults
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Mode line information
+(setopt line-number-mode t) ; Show current line in modeline
+(setopt column-number-mode t) ; Show column as well
+
+(setopt x-underline-at-descent-line nil) ; Prettier underlines
+(setopt switch-to-buffer-obey-display-actions t) ; Make switching buffers more consistent
+
+(setopt show-trailing-whitespace nil) ; By default, don't underline trailing spaces
+(setopt indicate-buffer-boundaries 'left) ; Show buffer top and bottom in the margin
+
+;; Enable horizontal scrolling
+(setopt mouse-wheel-tilt-scroll t)
+(setopt mouse-wheel-flip-direction t)
+
+(setopt indent-tabs-mode nil)
+
+(blink-cursor-mode -1)
+(tool-bar-mode -1)
+(menu-bar-mode -1)
+(scroll-bar-mode -1)
+(setopt cursor-type 'bar)
+(pixel-scroll-precision-mode)
+
+(add-hook 'prog-mode-hook 'display-line-numbers-mode)
+(setopt display-line-numbers-width 3)
+
+(add-hook 'text-mode-hook 'visual-line-mode)
+
+(let ((hl-line-hooks '(text-mode-hook prog-mode-hook)))
+ (mapc (lambda (hook) (add-hook hook 'hl-line-mode)) hl-line-hooks))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Tab-bar configuration
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+;; Show the tab-bar as soon as tab-bar functions are invoked
+(setopt tab-bar-show 1)
+
+;; Add the time to the tab-bar, if visible
+(add-to-list 'tab-bar-format 'tab-bar-format-align-right 'append)
+(add-to-list 'tab-bar-format 'tab-bar-format-global 'append)
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Face
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+
+(defun pinoinha/set-face ()
+ (set-face-attribute 'default nil :font (font-spec :family "Iosevka Nerd Font" :weight 'normal :size 18))
+ (load-theme 'dracula t))
+
+(if (daemonp)
+ (add-hook 'server-after-make-frame-hook
+ 'pinoinha/set-face)
+ (pinoinha/set-face))
+
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;;;
+;;; Built-in customization framework
+;;;
+;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+(require 'package)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(package-initialize)
+
+(use-package emacs
+ :config
+ (setq major-mode-remap-alist
+ '((yaml-mode . yaml-ts-mode)
+ (bash-mode . bash-ts-mode)
+ (js2-mode . js-ts-mode)
+ (typescript-mode . typescript-ts-mode)
+ (json-mode . json-ts-mode)
+ (css-mode . css-ts-mode)
+ (python-mode . python-ts-mode)
+ (rust-mode . rust-ts-mode)
+ (go-mode . go-ts-mode))))
+
+(use-package recentf
+ :bind (("C-x C-r" . recentf-open))
+ :config
+ (setopt recentf-max-menu-items 25)
+ (setopt recentf-max-saved-items 25)
+ :hook
+ (after-init . recentf-mode))
+
+(use-package org
+ :hook ((org-mode . visual-line-mode))
+
+ :bind (:map global-map
+ ("C-c l s" . org-store-link)
+ ("C-c l i" . org-insert-link-global))
+ :config
+ (require 'oc-csl) ; citation support
+ (add-to-list 'org-export-backends 'md)
+
+ ;; Make org-open-at-point follow file links in the same window
+ (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file)
+
+ ;; Make exporting quotes better
+ (setq org-export-with-smart-quotes t))
+
+(use-package org-bullets
+ :ensure t
+ :hook
+ (org-mode . org-bullets-mode))
+
+(use-package org-roam
+ :ensure t
+ :config
+ (org-roam-db-autosync-mode)
+ ;; Dedicated side window for backlinks
+ (add-to-list 'display-buffer-alist
+ '("\\*org-roam\\*"
+ (display-buffer-in-side-window)
+ (side . right)
+ (window-width . 0.4)
+ (window-height . fit-window-to-buffer))))
+
+(setq org-directory "~/notas")
+(setq org-agenda-files '("agenda.org"))
+(setopt org-agenda-include-diary t)
+
+;; Org-refile: where should org-refile look?
+(setq org-refile-targets 'FIXME)
+
+;; Org-roam variables
+(setq org-roam-directory "~/notas")
+
+;; Consult: Misc. enhanced commands
+(use-package consult
+ :ensure t
+ :bind (
+ ;; Drop-in replacements
+ ("C-c M-x" . consult-mode-command)
+ ("C-x b" . consult-buffer)
+ ("M-y" . consult-yank-pop)
+ ;; Searching
+ ("M-s r" . consult-ripgrep)
+ ("C-s" . consult-line)
+ ("M-s L" . consult-line-multi)
+ ("M-s o" . consult-outline)
+ :map isearch-mode-map
+ ("M-e" . consult-isearch-history)
+ ("M-s e" . consult-isearch-history)
+ ("M-s l" . consult-line)
+ ("M-s L" . consult-line-multi))
+ :config
+ ;; Narrowing lets you restrict results to certain groups of candidates
+ (setq consult-narrow-key "<"))
+
+(use-package embark
+ :ensure t
+ :demand t
+ :after avy
+ :bind (("C-c a" . embark-act)) ; bind this to an easy key to hit
+ :init
+ (defun bedrock/avy-action-embark (pt)
+ (unwind-protect
+ (save-excursion
+ (goto-char pt)
+ (embark-act))
+ (select-window
+ (cdr (ring-ref avy-ring 0))))
+ t)
+
+ ;; After invoking avy-goto-char-timer, hit "." to run embark at the next
+ ;; candidate you select
+ (setf (alist-get ?. avy-dispatch-alist) 'bedrock/avy-action-embark))
+
+(use-package embark-consult
+ :ensure t)
+
+;; Vertico: better vertical completion for minibuffer commands
+(use-package vertico
+ :ensure t
+ :init
+ (vertico-mode))
+
+(use-package vertico-directory
+ :after vertico
+ :bind (:map vertico-map
+ ("M-DEL" . vertico-directory-delete-word)))
+
+;; Marginalia: annotations for minibuffer
+(use-package marginalia
+ :ensure t
+ :config
+ (marginalia-mode))
+
+;; Popup completion-at-point
+(use-package corfu
+ :ensure t
+ :init
+ (global-corfu-mode)
+ :bind
+ (:map corfu-map
+ ("SPC" . corfu-insert-separator)
+ ("C-n" . corfu-next)
+ ("C-p" . corfu-previous)))
+
+;; Part of corfu
+(use-package corfu-popupinfo
+ :after corfu
+ :hook (corfu-mode . corfu-popupinfo-mode)
+ :custom
+ (corfu-popupinfo-delay '(0.25 . 0.1))
+ (corfu-popupinfo-hide nil)
+ :config
+ (corfu-popupinfo-mode))
+
+;; Make corfu popup come up in terminal overlay
+(use-package corfu-terminal
+ :if (not (display-graphic-p))
+ :ensure t
+ :config
+ (corfu-terminal-mode))
+
+;; Fancy completion-at-point functions; there's too much in the cape package to
+;; configure here; dive in when you're comfortable!
+(use-package cape
+ :ensure t
+ :init
+ (add-to-list 'completion-at-point-functions #'cape-dabbrev)
+ (add-to-list 'completion-at-point-functions #'cape-file))
+
+;; Pretty icons for corfu
+(use-package kind-icon
+ :if (display-graphic-p)
+ :ensure t
+ :after corfu
+ :config
+ (add-to-list 'corfu-margin-formatters #'kind-icon-margin-formatter))
+
+;; Orderless: powerful completion style
+(use-package orderless
+ :ensure t
+ :config
+ (setq completion-styles '(orderless)))
+
+;; Modify search results en masse
+(use-package wgrep
+ :ensure t
+ :config
+ (setq wgrep-auto-save-buffer t))
+
+(use-package eglot
+ ;; no :ensure t here because it's built-in
+
+ ;; Configure hooks to automatically turn-on eglot for selected modes
+ :hook
+ (((python-mode ruby-mode elixir-mode rust-ts-mode go-ts-mode) . eglot))
+
+ :custom
+ (eglot-send-changes-idle-time 0.5)
+ (eglot-extend-to-xref t)
+
+ :config
+ (fset #'jsonrpc--log-event #'ignore)
+ ;; Sometimes you need to tell Eglot where to find the language server
+ ; (add-to-list 'eglot-server-programs
+ ; '(haskell-mode . ("haskell-language-server-wrapper" "--lsp")))
+ )
+
+(use-package treesit-auto
+ :custom
+ (treesit-auto-install 'prompt)
+ :ensure t
+ :config
+ (treesit-auto-add-to-auto-mode-alist 'all)
+ (global-treesit-auto-mode))
+
+;; Magit: best Git client to ever exist
+(use-package magit
+ :ensure t
+ :bind (("C-x g" . magit-status)))
+
+(use-package markdown-mode
+ :hook ((markdown-mode . visual-line-mode)))
+
+(use-package yaml-mode
+ :ensure t)
+
+(use-package json-mode
+ :ensure t)
+
+(defun set-exec-path-from-shell-PATH ()
+ "Set up Emacs' `exec-path' and PATH environment variable to match
+that used by the user's shell.
+
+This is particularly useful under Mac OS X and macOS, where GUI
+apps are not started from a shell."
+ (interactive)
+ (let ((path-from-shell (replace-regexp-in-string
+ "[ \t\n]*$" "" (shell-command-to-string
+ (if (string= (getenv "SHELL") "/bin/fish")
+ "$SHELL --login -c 'string join : $PATH'"
+ "$SHELL --login -c 'echo $PATH'")))))
+ (setenv "PATH" path-from-shell)
+ (setq exec-path (split-string path-from-shell path-separator))))
+(set-exec-path-from-shell-PATH)
+
+(use-package avy
+ :ensure t
+ :demand t
+ :init
+ (setq avy-timeout-seconds 1.0)
+ :bind (("C-;" . avy-goto-char-timer)))
+
+(use-package dracula-theme :ensure t)
+
+(use-package vterm
+ :ensure t
+ :commands vterm
+ :config
+ (setq term-prompt-regexp "^[^#$%>\n]*[#$%>] *")
+ (setq vterm-shell "/bin/fish")
+ (setq vterm-max-scrollback 10000))
+
+(use-package vterm-toggle
+ :ensure t
+ :after vterm)
+
+(use-package smartparens-mode
+ :ensure smartparens
+ :hook (prog-mode text-mode markdown-mode org-mode)
+ :config
+ (require 'smartparens-config))
+
+(use-package meow
+ :ensure t
+ :init
+ (defun meow-setup ()
+ (setopt meow-use-clipboard t)
+ (define-key meow-normal-state-keymap (kbd "i") nil)
+ ;; -------------------- ;;
+ ;; THING TABLE ;;
+ ;; -------------------- ;;
+ (meow-thing-register 'angle
+ '(pair ("<") (">"))
+ '(pair ("<") (">")))
+
+ (setq meow-char-thing-table
+ '((?f . round)
+ (?d . square)
+ (?s . curly)
+ (?a . angle)
+ (?r . string)
+ (?v . paragraph)
+ (?c . line)
+ (?x . buffer)))
+
+ ;; -------------------- ;;
+ ;; MAPPINGS ;;
+ ;; -------------------- ;;
+ (meow-define-keys 'normal
+ '("0" . meow-expand-0)
+ '("1" . meow-expand-1)
+ '("2" . meow-expand-2)
+ '("3" . meow-expand-3)
+ '("4" . meow-expand-4)
+ '("5" . meow-expand-5)
+ '("6" . meow-expand-6)
+ '("7" . meow-expand-7)
+ '("8" . meow-expand-8)
+ '("9" . meow-expand-9)
+ '(";" . meow-reverse)
+
+ '("u" . meow-prev)
+ '("e" . meow-next)
+ '("n" . meow-left)
+ '("a" . meow-right)
+
+ '("q" . meow-search)
+ '("/" . meow-visit)
+
+ '("U" . meow-prev-expand)
+ '("E" . meow-next-expand)
+ '("N" . meow-left-expand)
+ '("A" . meow-right-expand)
+
+ '("l" . meow-back-word)
+ '("L" . meow-back-symbol)
+ '("o" . meow-next-word)
+ '("O" . meow-next-symbol)
+
+ '("r" . meow-mark-word)
+ '("R" . meow-mark-symbol)
+ '("s" . meow-line)
+ '("S" . meow-goto-line)
+ '("g" . meow-block)
+ '("w" . meow-join)
+ '("k" . meow-grab)
+ '("K" . meow-pop-grab)
+ '("'" . meow-swap-grab)
+ '("\"" . meow-sync-grab)
+ '("y" . meow-cancel-selection)
+ '("Y" . meow-pop-selection)
+
+ '("m" . meow-till)
+ '("c" . meow-find)
+
+ '("," . meow-beginning-of-thing)
+ '("." . meow-end-of-thing)
+ '("<" . meow-inner-of-thing)
+ '(">" . meow-bounds-of-thing)
+
+ '("t" . meow-kill)
+ '("h" . meow-change)
+ '("b" . meow-delete)
+ '("p" . meow-save)
+ '("v" . meow-yank)
+ '("V" . meow-yank-pop)
+
+ '("d" . meow-insert)
+ '("D" . meow-open-above)
+ '("f" . meow-append)
+ '("F" . meow-open-below)
+
+ '("j" . undo-only)
+ '("J" . undo-redo)
+
+ '("x" . open-line)
+ '("X" . split-line)
+
+ '("[" . indent-rigidly-left-to-tab-stop)
+ '("]" . indent-rigidly-right-to-tab-stop)
+
+ '("zh" . meow-comment)
+ '("zb" . meow-start-kmacro-or-insert-counter)
+ '("zf" . meow-start-kmacro)
+ '("zd" . meow-end-or-call-kmacro)
+
+ '("ih" . save-buffer)
+ '("iH" . save-some-buffers)
+ '("it" . meow-query-replace-regexp)
+
+ '("<escape>" . ignore)
+
+ (meow-leader-define-key
+ '("t" . vterm-toggle-cd))))
+
+ :config
+ (meow-setup)
+ (meow-global-mode 1))
+
+(use-package fish-mode
+ :ensure t)
+
+(custom-set-variables
+ ;; custom-set-variables was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ '(auth-source-save-behavior nil)
+ '(custom-safe-themes
+ '("603a831e0f2e466480cdc633ba37a0b1ae3c3e9a4e90183833bc4def3421a961" default))
+ '(package-selected-packages
+ '(vterm-toggle fish-completion fish-mode org-bullets smartparens meow vterm dracula-theme treesit-auto org-roam-ui json-mode yaml-mode magit wgrep orderless kind-icon cape corfu-terminal corfu marginalia vertico embark-consult embark consult avy which-key)))
+(custom-set-faces
+ ;; custom-set-faces was added by Custom.
+ ;; If you edit it by hand, you could mess it up, so be careful.
+ ;; Your init file should contain only one such instance.
+ ;; If there is more than one, they won't work right.
+ )