From 4ef43036df0a813842759675c577331a81eec42f Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Thu, 3 Mar 2022 08:45:47 -0600 Subject: [PATCH 1/4] Push before pull. --- .config/doom/config.el | 3 +++ .config/doom/config.org | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/.config/doom/config.el b/.config/doom/config.el index 9c8f209..9e82972 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -3,6 +3,9 @@ :desc "List bookmarks" "L" #'list-bookmarks :desc "Save current bookmarks to bookmark file" "w" #'bookmark-save)) +(global-auto-revert-mode 1) +(setq global-auto-revert-non-file-buffers t) + (evil-define-key 'normal ibuffer-mode-map (kbd "f c") 'ibuffer-filter-by-content (kbd "f d") 'ibuffer-filter-by-directory diff --git a/.config/doom/config.org b/.config/doom/config.org index e981dd6..b0e82c1 100644 --- a/.config/doom/config.org +++ b/.config/doom/config.org @@ -8,6 +8,7 @@ - [[#bookmarks-and-buffers][BOOKMARKS AND BUFFERS]] - [[#bookmarks][Bookmarks]] - [[#buffers][Buffers]] + - [[#global-auto-revert][Global Auto Revert]] - [[#keybindings-within-ibuffer-mode][Keybindings within ibuffer mode]] - [[#calendar][CALENDAR]] - [[#centaur-tabs][CENTAUR-TABS]] @@ -77,6 +78,14 @@ Regarding /buffers/, the text you are editing in Emacs resides in an object call | previous-buffer | Goto previous buffer | SPC b p | | save-buffer | Save current buffer | SPC b s | +** Global Auto Revert +A buffer can get out of sync with respect to its visited file on disk if that file is changed by another program. To keep it up to date, you can enable Auto Revert mode by typing M-x auto-revert-mode, or you can set it to be turned on globally with 'global-auto-revert-mode'. I have also turned on Global Auto Revert on non-file buffers, which is especially useful for 'dired' buffers. + +#+begin_src emacs-lisp +(global-auto-revert-mode 1) +(setq global-auto-revert-non-file-buffers t) +#+end_src + ** Keybindings within ibuffer mode | COMMAND | DESCRIPTION | KEYBINDING | |-----------------------------------+----------------------------------------+------------| From 16334aa893c821008e2bf4925dc1e8fd8baa24e3 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Tue, 8 Mar 2022 18:58:46 -0600 Subject: [PATCH 2/4] Removing unneeded variable. --- .xmonad/README.org | 3 --- .xmonad/xmonad.hs | 3 --- 2 files changed, 6 deletions(-) diff --git a/.xmonad/README.org b/.xmonad/README.org index 175419d..e248cff 100644 --- a/.xmonad/README.org +++ b/.xmonad/README.org @@ -143,9 +143,6 @@ myEditor :: String myEditor = "emacsclient -c -a 'emacs' " -- Sets emacs as editor -- myEditor = myTerminal ++ " -e vim " -- Sets vim as editor -myRunCommand :: String -myRunCommand = "dmenu_run -l 20 -g 3 -X 0 -Y 0 -W 680 -p 'Run: '" - myBorderWidth :: Dimension myBorderWidth = 2 -- Sets border width for windows diff --git a/.xmonad/xmonad.hs b/.xmonad/xmonad.hs index 9158891..37aa88b 100644 --- a/.xmonad/xmonad.hs +++ b/.xmonad/xmonad.hs @@ -99,9 +99,6 @@ myEditor :: String myEditor = "emacsclient -c -a 'emacs' " -- Sets emacs as editor -- myEditor = myTerminal ++ " -e vim " -- Sets vim as editor -myRunCommand :: String -myRunCommand = "dmenu_run -l 20 -g 3 -X 0 -Y 0 -W 680 -p 'Run: '" - myBorderWidth :: Dimension myBorderWidth = 2 -- Sets border width for windows From 9bf848d67de85d226c192916c95e31d51f9a0ae0 Mon Sep 17 00:00:00 2001 From: ishaan Date: Tue, 15 Mar 2022 21:31:38 +0530 Subject: [PATCH 3/4] fix typos in pacman alias --- .bashrc | 2 +- .config/fish/config.fish | 4 ++-- .zshrc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 364b3d5..28b9408 100644 --- a/.bashrc +++ b/.bashrc @@ -149,7 +149,7 @@ alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru) alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru) alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock -alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages +alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages # get fastest mirrors alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist" diff --git a/.config/fish/config.fish b/.config/fish/config.fish index beb2b43..2eb1634 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -237,14 +237,14 @@ alias lt='exa -aT --color=always --group-directories-first' # tree listing alias l.='exa -a | egrep "^\."' # pacman and yay -alias pacsyu='sudo pacman -Syu' # update only standard pkgs +alias pacsyu='sudo pacman -Syu' # update only standard pkgs alias pacsyyu='sudo pacman -Syyu' # Refresh pkglist & update standard pkgs alias yaysua='yay -Sua --noconfirm' # update only AUR pkgs (yay) alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR pkgs (yay) alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru) alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru) alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock -alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages +alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages # get fastest mirrors alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist" diff --git a/.zshrc b/.zshrc index c97b970..3193a06 100644 --- a/.zshrc +++ b/.zshrc @@ -145,7 +145,7 @@ alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru) alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru) alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock -alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages +alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages # get fastest mirrors alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist" From f1cc108bbd22cf54cd2da0ff1fe1c98306de982f Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Tue, 15 Mar 2022 11:17:18 -0500 Subject: [PATCH 4/4] Fixing typo. --- .config/fish/config.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 2eb1634..afedd20 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -244,7 +244,7 @@ alias yaysyu='yay -Syu --noconfirm' # update standard pkgs and AUR alias parsua='paru -Sua --noconfirm' # update only AUR pkgs (paru) alias parsyu='paru -Syu --noconfirm' # update standard pkgs and AUR pkgs (paru) alias unlock='sudo rm /var/lib/pacman/db.lck' # remove pacman lock -alias cleanup='sudo pacman -Rns $(pacman -Qtdq)' # remove orphaned packages +alias cleanup='sudo pacman -Rns (pacman -Qtdq)' # remove orphaned packages # get fastest mirrors alias mirror="sudo reflector -f 30 -l 30 --number 10 --verbose --save /etc/pacman.d/mirrorlist"