Various changes lol idc enough to write a commit message

This commit is contained in:
minhtrannhat 2022-02-05 16:17:42 -05:00
parent 8fa4085b7b
commit a34a9be519
No known key found for this signature in database
GPG Key ID: 894C6A5801E01CA9
6 changed files with 24 additions and 13 deletions

View File

@ -74,6 +74,7 @@
;; (global-tree-sitter-mode)
;; (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode))
;; gpg
(setq epg-pinentry-mode 'loopback)
;; both jk and kj now works
@ -137,11 +138,16 @@
org-roam-ui-update-on-save t
org-roam-ui-open-on-start t))
;; Deft - a Major mode for text searching
(setq deft-directory org-roam-directory)
(setq deft-recursive t)
(setq deft-default-extension "org")
(setq deft-use-filter-string-for-filename t)
(defun org-roam-rg-search ()
"Search org-roam directory using consult-ripgrep. With live-preview."
(interactive)
(let ((consult-ripgrep-command "rg --null --ignore-case --type org --line-buffered --color=always --max-columns=500 --no-heading --line-number . -e ARG OPTS"))
(consult-ripgrep org-roam-directory)))
(map! :leader
:desc "Search org-roam with consult-ripgrep"
"n r F" #'org-roam-rg-search)
;; Function for inserting node into Org Roam
(defun org-roam-node-insert-immediate (arg &rest args)
@ -161,7 +167,6 @@
(after! lsp-mode
(setq lsp-signature-auto-activate nil))
(lsp-treemacs-sync-mode 1)
(setq highlight-indent-guides-method 'bitmap)

View File

@ -6,6 +6,7 @@ alias rm 'rm -i'
alias nnn 'nnn -e'
alias icat 'kitty +kitten icat'
alias magit 'emacs -nw --eval "(magit-status)"'
alias emac 'emacsclient -nw'
alias qutebrowser 'qutebrowser --qt-flag ignore-gpu-blocklist --qt-flag enable-gpu-rasterization --qt-flag enable-native-gpu-memory-buffers --qt-flag num-raster-threads=4'
export GPG_TTY=(tty)
@ -42,3 +43,5 @@ set -gx _JAVA_AWT_WM_NONREPARENTING 1
set -x PATH /usr/libexec /usr/local/bin /home/minhradz/.cargo/bin /home/minhradz/.local/bin /home/minhradz/go/bin /home/minhradz/.cabal/bin $PATH
starship init fish | source
direnv hook fish | source

View File

@ -44,12 +44,13 @@ formatters.setup({
},
{
exe = "rustfmt",
filetype = { "rust" },
},
{ exe = "prettier" },
{ exe = "gofmt" },
{ exe = "gofmt", filetypes = { "go" } },
{ exe = "eslint_d" },
{ exe = "stylua" },
{ exe = "brittany" },
{ exe = "stylua", filetypes = { "lua" } },
{ exe = "brittany", filetypes = { "haskell" } },
})
linters.setup({

View File

@ -248,6 +248,6 @@ bindsym XF86AudioLowerVolume exec pulsemixer --change-volume -2 && pulsemixer --
bindsym XF86AudioMute exec pulsemixer --toggle-mute && ( pulsemixer --get-mute && echo 0 > $SWAYSOCK.wob ) || pamixer --get-volume > $SWAYSOCK.wob
bindsym XF86MonBrightnessUp exec light -A 10
bindsym XF86MonBrightnessDown exec light -U 10
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev
bindsym XF86AudioStop exec mpc toggle
bindsym XF86AudioNext exec mpc --host=192.168.0.100 --port=6600 next
bindsym XF86AudioPrev exec mpc --host=192.168.0.100 --port=6600 prev
bindsym XF86AudioStop exec mpc --host=192.168.0.100 --port=6600 toggle

View File

@ -47,6 +47,8 @@
},
"mpd": {
"server": "192.168.0.100",
"port": "6600",
"format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {title} ({elapsedTime:%M:%S}) ",
"format-disconnected": "Disconnected ",
"format-stopped": "{consumeIcon}{randomIcon}{repeatIcon}{singleIcon}Stopped ",

View File

@ -17,7 +17,7 @@
}
{
"label" : "shutdown",
"action" : "systemctl shutdown",
"action" : "shutdown now",
"text" : "Shutdown",
"keybind" : "s"
}