From c59d99ccb9753bb5e45a8b6d4a6642151a7281b5 Mon Sep 17 00:00:00 2001 From: fpi Date: Wed, 4 May 2022 13:42:33 +0200 Subject: [WIP] Make next command act on local host --- emacs-init.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/emacs-init.org b/emacs-init.org index 5054727..d108527 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -1858,6 +1858,16 @@ This was inspired from [[http://endlessparentheses.com/the-toggle-map-and-wizard <> #+END_SRC +Make next command act on local host. +#+begin_src emacs-lisp :noweb-ref fpi-bindings +(defmacro fpi/as-local (func) + (let ((default-directory temporary-file-directory)) + func + ;; (shell-command "explorer") + )) +(fpi/as-local (pwd)) +(fpi/as-local default-directory) +#+end_src ** Base commands (simple.el) #+begin_src emacs-lisp (use-package simple -- cgit v1.2.3