Skip to content

Commit

Permalink
Changes from work laptop (#536)
Browse files Browse the repository at this point in the history
Contributed under the terms of the MIT License
  • Loading branch information
raxod502 authored May 10, 2024
2 parents 263f351 + fe784ff commit 715b762
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions emacs/radian.el
Original file line number Diff line number Diff line change
Expand Up @@ -5169,6 +5169,12 @@ spam. This advice, however, inhibits the message for everyone.")
(let ((kill-emacs-hook nil))
(kill-emacs)))

;; Get rid of `restart-emacs' builtin because until we no longer
;; support Emacs 27 it is easier to have a single implementation
;; rather than one that has a different calling convention depending
;; on Emacs version.
(fmakunbound 'restart-emacs)

;; Package `restart-emacs' provides an easy way to restart Emacs from
;; inside of Emacs, both in the terminal and in windowed mode.
(radian-use-package restart-emacs
Expand Down
3 changes: 3 additions & 0 deletions git/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
# of the screen if the pager doesn't get invoked for each one.
# See <https://stackoverflow.com/a/12352224/3538165>.
pager = less -+F
# https://github.blog/2022-06-29-improve-git-monorepo-performance-with-a-file-system-monitor/
fsmonitor = true
untrackedcache = true
[credential]
helper =
helper = cache --timeout 86400
Expand Down
10 changes: 8 additions & 2 deletions shell/zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,17 @@ alias ds='dirs -v | head -10'

#### ls, exa

if (( $+commands[exa] )); then
if (( $+commands[eza] )) || (( $+commands[exa] )); then

if ! (( $+commands[exa] )); then
function exa {
eza $@
}
fi

function l {
emulate -LR zsh
exa --all --header --long --color-scale $@
exa --all --header --long --color-scale=all $@
}

function lg {
Expand Down

0 comments on commit 715b762

Please sign in to comment.