summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfpi2022-05-04 13:42:33 +0200
committerfpi2023-02-19 18:37:22 +0100
commitc59d99ccb9753bb5e45a8b6d4a6642151a7281b5 (patch)
tree6d713f9ecc098f95034a8ba6330f2799c91ac1b7
parentMerge branches 'awesome', 'emacs', 'gnuplot', 'gpg', 'ledger', 'mail', 'redsh... (diff)
[WIP] Make next command act on local host
-rw-r--r--emacs-init.org10
1 files changed, 10 insertions, 0 deletions
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
<<fpi-bindings>>
#+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