From b3e301bd285ce0ac693cf2cfe7c0e894b5e0c639 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Wed, 21 May 2025 00:43:37 -0400 Subject: [PATCH] minor improvements --- .gitignore | 1 + init.el | 21 ++++++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index faf22b2..c483d68 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ /tramp /transient /url +/image-dired/ # artifacts I create /dev.el diff --git a/init.el b/init.el index f8c0fee..1701c98 100644 --- a/init.el +++ b/init.el @@ -686,6 +686,13 @@ A non-nil CURRENT-ONLY argument means save only current buffer." savehist-file (concat user-emacs-directory ".savehist")) (savehist-mode 1)) +;;; image dired + + +;; dont see how to make this change existing thumbs +;; image-dired-thumb-size + + ;;; dired ;; dired - reuse current buffer by pressing 'a' @@ -1042,7 +1049,7 @@ A non-nil CURRENT-ONLY argument means save only current buffer." ;;'(header-line ((t (:background "default" :foreground "default" :overline nil :underline nil)))) ;; '(region ((t nil)))) -;;; tramp debugging +;; notes on tramp debugging: ;; emacs -Q ;; (setq tramp-verbose 10) ;; do the thing that fails, then open the very big buffer. I figured out somewhat randomly that it was failing to find readlink by doing type -P readlink, which fails in dash with: -P: not found @@ -1123,8 +1130,9 @@ A non-nil CURRENT-ONLY argument means save only current buffer." (interactive) (mml-secure-message-encrypt-pgpmime 'dontsign)) -;; don't highlight the region. -(set-face-background 'region nil) +;; don't highlight the region. just changing things up. +;;(set-face-background 'region nil) +;; ;; this fixes save error for python example code (define-coding-system-alias 'UTF-8 'utf-8) @@ -2553,6 +2561,13 @@ modes like org-mode which have their own yank function." ;;;;; C-c - copy (global-set-key (kbd "C-d") 'kill-ring-save) + +;; by default is does image-dired-delete-character, pretty useless. +(add-hook 'image-dired-thumbnail-mode-hook + (lambda () + (define-key image-dired-thumbnail-mode-map (kbd "C-d") nil))) + + (add-hook 'c-mode-common-hook (lambda () (define-key c-mode-map (kbd "C-d") nil) -- 2.30.2