From c6c985d1188830ac90a546cfa27a77c220c9d096 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 19 Oct 2023 19:24:35 +0200 Subject: Add stumpwm and change disk config for berserker. --- .emacs.d/jd/jd-custom.el | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '.emacs.d/jd/jd-custom.el') diff --git a/.emacs.d/jd/jd-custom.el b/.emacs.d/jd/jd-custom.el index 96d13c6..f48f761 100755 --- a/.emacs.d/jd/jd-custom.el +++ b/.emacs.d/jd/jd-custom.el @@ -17,6 +17,19 @@ clipboard-file-path)) (find-file clipboard-out-image))) +(defun jd/dired-open-file-in-kill-ring () + (interactive) + (let* ((last-killed (car kill-ring)) + (exists-p (file-exists-p last-killed)) + (dir-p (file-directory-p last-killed))) + (cond + ((not exists-p) (message "File doesn't exists!")) + (dir-p (dired last-killed)) + ((not dir-p) (find-file last-killed))))) + +(global-set-key (kbd "C-c O") #'jd/dired-open-file-in-kill-ring) + + (setq erc-nick "bobbma" erc-user-full-name "Jakub Dlugosz" erc-notify-list '("akuleszaa")) -- cgit v1.2.3