diff options
author | fpi | 2022-05-04 13:42:33 +0200 |
---|---|---|
committer | fpi | 2023-02-19 18:37:22 +0100 |
commit | c59d99ccb9753bb5e45a8b6d4a6642151a7281b5 (patch) | |
tree | 6d713f9ecc098f95034a8ba6330f2799c91ac1b7 | |
parent | Merge branches 'awesome', 'emacs', 'gnuplot', 'gpg', 'ledger', 'mail', 'redsh... (diff) |
[WIP] Make next command act on local host
Diffstat (limited to '')
-rw-r--r-- | emacs-init.org | 10 |
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 |