summaryrefslogtreecommitdiffstats
path: root/.emacs.d/jd/jd-custom.el
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-10-19 19:24:35 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-10-19 19:24:35 +0200
commitc6c985d1188830ac90a546cfa27a77c220c9d096 (patch)
treeb2aaaebfbcbd4141eb6ca5cf533a7e0db2cbe962 /.emacs.d/jd/jd-custom.el
parent2a5d171484392d55f3abfd9e48807edc77c182b0 (diff)
downloaddotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.tar.gz
dotfiles-c6c985d1188830ac90a546cfa27a77c220c9d096.zip
Add stumpwm and change disk config for berserker.
Diffstat (limited to '.emacs.d/jd/jd-custom.el')
-rwxr-xr-x.emacs.d/jd/jd-custom.el13
1 files changed, 13 insertions, 0 deletions
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 @@
17 clipboard-file-path)) 17 clipboard-file-path))
18 (find-file clipboard-out-image))) 18 (find-file clipboard-out-image)))
19 19
20(defun jd/dired-open-file-in-kill-ring ()
21 (interactive)
22 (let* ((last-killed (car kill-ring))
23 (exists-p (file-exists-p last-killed))
24 (dir-p (file-directory-p last-killed)))
25 (cond
26 ((not exists-p) (message "File doesn't exists!"))
27 (dir-p (dired last-killed))
28 ((not dir-p) (find-file last-killed)))))
29
30(global-set-key (kbd "C-c O") #'jd/dired-open-file-in-kill-ring)
31
32
20(setq erc-nick "bobbma" 33(setq erc-nick "bobbma"
21 erc-user-full-name "Jakub Dlugosz" 34 erc-user-full-name "Jakub Dlugosz"
22 erc-notify-list '("akuleszaa")) 35 erc-notify-list '("akuleszaa"))