(kill-buffer (get-file-buffer ,conflict)) ( when (y-or-n-p "Delete conflict file? ") ( let* ((normal (ibizaman/syncthing-get-normal-filename conflict))) ( defun ibizaman/syncthing-resolve-conflict (conflict) ( let ((chosen (car (dired-get-marked-files nil arg)))) "Resolve conflict of first marked file in dired or close to point with ARG." ( defun ibizaman/syncthing-resolve-conflict-dired ( &optional arg) (find-name-dired directory "*.sync-conflict-*")) "Open dired buffer at DIRECTORY showing all syncthing conflicts." ( defun ibizaman/syncthing-show-conflicts-dired (directory) (ibizaman/syncthing-resolve-conflict chosen))) (chosen (ibizaman/syncthing-pick-a-conflict all))) ( let * ((all (ibizaman/syncthing-get-sync-conflicts directory)) "Resolve all conflicts under given DIRECTORY." ( defun ibizaman/syncthing-resolve-conflicts (directory) (ibizaman/syncthing-resolve-conflicts "~/cloud/orgzly")) That code is now in xclip 1.9 in ELPA, so if you M-x package-install xclip, you should be able to turn on xclip-mode and have it copy and paste between applications. I also sometimes wanted to copy and paste between Termux and Emacs by using the keyboard, so I submitted a patch for xclip.el so that it would detect and work with termux-clipboard-get/set. "TODO=\"DONE\"|TODO=\"CANCELLED\"" ( or scope ( if (org-before-first-heading-p) 'file 'tree)))) ( setq org-map-continue-from (outline-previous-heading))) ( defun my/org-archive-done-tasks ( &optional scope) ( if (org-at-heading-p) ( save-excursion (insert "\n"))) ( with-current-buffer (find-file my/org-inbox-file) "Archive all DONE tasks and sort the remainder by TODO order." Here are a few tweaks that made Emacs even better.įirst, a little bit of code for phone-specific config, taking advantage of the weird automatic username I have there. ![]() That way, I can hop between Orgzly and Emacs as quickly as I want. I set up Orgzly to auto-sync with a local repository (synchronized with my server and laptop via Syncthing) and the same Org files set up in my agenda in Emacs on Termux. I set up Syncthing to synchronize files with my server and laptop, Termux:API to make storage accessible, and symlinks in my home directory to replicate the main parts of my setup. It would be nice to fix accidental keypresses when swiping extra keys to get to the input field, but that can wait a bit. It’s been merged upstream, but the new version hasn’t been released yet, so I’m still running the one I compiled from source. I patched my Termux to allow the use of function keys in the extra keys shortcut bar. Here’s what I’ve configured in ~/.termux/termux.properties: extra-keys = ,] I can resize by pinch-zooming, scroll by swiping, and even enter in more text by swiping right on the row of virtual keyboard buttons. Runnng Emacs via Termux works pretty well. Orgzly is handy for reviewing my agenda and adding items on the go, but nothing beats Emacs for full flexibility. I’m planning to leave my laptop at home during our 3-week trip, so I’ve been shifting more things to my phone in preparation. Update: Fixed reference to termux.properties
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |