Compare commits

..

No commits in common. "b7728cf9cae793c72858db9e2827a8226289066a" and "13aef359c29ec393dc952d0ab6525c61ce1581d5" have entirely different histories.

6 changed files with 6 additions and 67 deletions

View file

@ -29,7 +29,7 @@ xhost +local:root > /dev/null 2>&1
# Startup & environment:5 ends here
# [[file:Console.org::*Startup & environment][Startup & environment:6]]
# export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'"
export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'"
# Startup & environment:6 ends here
# [[file:Console.org::*Startup & environment][Startup & environment:7]]

View file

@ -1,6 +1,5 @@
(specifications->manifest
'(
"man-db"
"aria2"
"openssl"
"ncdu"

View file

@ -615,25 +615,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
(setq accent-custom '((a (ā))
(A (Ā)))))
(defun my/round-number-at-point (word signs)
(interactive
(list (or (when (region-active-p)
(buffer-substring-no-properties
(region-beginning)
(region-end)))
(thing-at-point 'number 'no-properties))
(read-number "Decimal signs: " 2)))
(when (stringp word)
(setq word (string-to-number word)))
(let ((number (/ (float (round (* (expt 10 signs) word)))
(expt 10 signs))))
(save-excursion
(replace-string-in-region
(number-to-string word)
(number-to-string number)
(line-beginning-position)
(line-end-position)))))
(use-package projectile
:straight t
:config
@ -8211,7 +8192,6 @@ base toot."
"qwen2.5:32b" "qwen2.5-coder:32b"
"eva-qwen2.5-q4_k_l-32b:latest"
"t-pro-1.0-q4_k_m:latest"
"t-lite-it-1.0-q4_k_m:latest"
(llava-phi3:latest
:capabilities (media)
:mime-types ("image/jpeg" "image/png")))))

View file

@ -51,18 +51,11 @@ fi
# SSL Certs:1 ends here
# [[file:Console.org::*ssh-agent][ssh-agent:1]]
SSH_AGENT_DIR="/tmp"
if [ "$IS_ANDROID" == "true" ]; then
SSH_AGENT_DIR="/data/data/com.termux/files/tmp"
mkdir -p $SSH_AGENT_DIR
fi
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent -t 1h > "$SSH_AGENT_DIR/ssh-agent.env"
ssh-agent -t 1h > "/tmp/ssh-agent.env"
fi
if [[ ! -f "$SSH_AUTH_SOCK" ]]; then
source "$SSH_AGENT_DIR/ssh-agent.env" >/dev/null
source "/tmp/ssh-agent.env" >/dev/null
fi
# ssh-agent:1 ends here

View file

@ -109,18 +109,11 @@ I'm paranoid so I encrypt my SSH keys.
Got the idea for below from [[https://wiki.archlinux.org/title/SSH_keys#SSH_agents][ArchWiki]]:
#+begin_src bash
SSH_AGENT_DIR="/tmp"
if [ "$IS_ANDROID" == "true" ]; then
SSH_AGENT_DIR="/data/data/com.termux/files/tmp"
mkdir -p $SSH_AGENT_DIR
fi
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent -t 1h > "$SSH_AGENT_DIR/ssh-agent.env"
ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [[ ! -f "$SSH_AUTH_SOCK" ]]; then
source "$SSH_AGENT_DIR/ssh-agent.env" >/dev/null
source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null
fi
#+end_src
** Guix settings
@ -352,7 +345,7 @@ xhost +local:root > /dev/null 2>&1
Set manpager to bat
#+begin_src bash
# export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'"
export MANPAGER="sh -c 'sed -e s/.\\\\x08//g | bat -l man -p'"
#+end_src
[[https://codeberg.org/akib/emacs-eat][eat]] integration
@ -981,8 +974,6 @@ keymap_mode = "vim-insert"
| ncdu | disk usage analyzer |
| openssl | |
| aria2 | Download tool |
| man-db | |
| pv | |
** ripgrep config
Occasionally I can't exclude certain files from ripgrep via the VCS settings, so here is a simple config to ignore certain files globally.

View file

@ -1083,28 +1083,6 @@ Input accented characters.
(setq accent-custom '((a (ā))
(A (Ā)))))
#+end_src
*** Random editing tricks
**** Round number at point
#+begin_src emacs-lisp
(defun my/round-number-at-point (word signs)
(interactive
(list (or (when (region-active-p)
(buffer-substring-no-properties
(region-beginning)
(region-end)))
(thing-at-point 'number 'no-properties))
(read-number "Decimal signs: " 2)))
(when (stringp word)
(setq word (string-to-number word)))
(let ((number (/ (float (round (* (expt 10 signs) word)))
(expt 10 signs))))
(save-excursion
(replace-string-in-region
(number-to-string word)
(number-to-string number)
(line-beginning-position)
(line-end-position)))))
#+end_src
** Working with projects
Packages related to managing projects.
@ -10857,7 +10835,6 @@ Or you can load up Element for a moment to see what the mention was, if that's e
(setq telega-emoji-use-images nil)
(setq telega-chat-fill-column 80)
(setq telega-completing-read-function #'completing-read)
(setq telega-sticker-size '(12 . 24))
(add-to-list 'savehist-additional-variables 'telega-msg-add-reaction)
(remove-hook 'telega-chat-mode-hook #'telega-chat-auto-fill-mode)
(general-define-key
@ -11203,7 +11180,6 @@ I don't have access to any proprietary APIs, but LLaMA 3.1 8b with [[https://oll
"qwen2.5:32b" "qwen2.5-coder:32b"
"eva-qwen2.5-q4_k_l-32b:latest"
"t-pro-1.0-q4_k_m:latest"
"t-lite-it-1.0-q4_k_m:latest"
(llava-phi3:latest
:capabilities (media)
:mime-types ("image/jpeg" "image/png")))))