Adjust bak script & doom font bindings

This commit is contained in:
xeruf 2021-07-04 18:20:36 +02:00
parent b8e4b6f063
commit c9b11ff5a9
2 changed files with 5 additions and 3 deletions

View File

@ -90,10 +90,11 @@ Version 2019-11-04 2021-02-16"
"#" 'xah-open-in-external-app
;; Buffer-local font resizing
:n
"M-C-=" 'text-scale-increase
"M-C-+" 'text-scale-increase
"M-C--" 'text-scale-decrease
;; Frame-local font resizing
"C-=" 'doom/increase-font-size
"C-=" 'doom/reset-font-size
"C-+" 'doom/increase-font-size
"C--" 'doom/decrease-font-size
)

View File

@ -1,2 +1,3 @@
#!/bin/sh
test -e "$1.bak" && ((test -e "$1" && mv "$1" /tmp); mv -n "$1.bak" "$1") || mv -n "$1" "$1.bak"
suffix="${2:-bak}"
test -e "$1.$suffix" && ((test -e "$1" && mv -v "$1" /tmp); mv -vn "$1.$suffix" "$1") || mv -vn "$1" "$1.$suffix"