diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2025-07-26 11:41:27 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2025-07-26 11:41:27 +0100 |
| commit | 58150ce402b936eeb8a0a1be105c0b6971c7d541 (patch) | |
| tree | 7243534d5070f02be10258c203f03b80d79c6418 | |
| parent | 54166139db2c078b39cf0425625d7723128089cd (diff) | |
darwin/emacs: Add ‘eshell/pbclear’
| -rw-r--r-- | dotfiles-darwin/emacs/init.el | 12 |
1 files changed, 12 insertions, 0 deletions
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 |
