From 58150ce402b936eeb8a0a1be105c0b6971c7d541 Mon Sep 17 00:00:00 2001 From: Grégoire Duchêne Date: Sat, 26 Jul 2025 11:41:27 +0100 Subject: darwin/emacs: Add ‘eshell/pbclear’ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotfiles-darwin/emacs/init.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dotfiles-darwin/emacs/init.el b/dotfiles-darwin/emacs/init.el index d0be267..3ce4166 100644 --- a/dotfiles-darwin/emacs/init.el +++ b/dotfiles-darwin/emacs/init.el @@ -8,6 +8,18 @@ (setq insert-directory-program "gls")) +;; Eshell + +(use-package esh-mode + :config + (if (fboundp 'eshell/pbclear) + (display-warning 'dotfiles "‘eshell/pbclear’ is already bound." :warning) + (defun eshell/pbclear () + "Clears the clipboard." + (call-process "pbcopy" nil 0))) + :defer t) + + ;; Org (use-package org -- cgit v1.2.3-70-g09d2