Avatar

xenodiumB

xenodium@alien.top
Joined
3 posts • 13 comments
Direct message

i want a video or a proof that emacs is wayy faster and efficient to code on than conventional vim

Watch all of https://emacsrocks.com

As a sneak peek, check out episode 13 (watch til the end)

permalink
report
reply

Probably MELPA hadn’t picked up my changes when you tried it. Maybe update the lckage and try again.

permalink
report
reply

As a macOS user, I typically glue these dired things via dwim-shell-command (disclosure, I wrote that).

Not super tested, but I added dwim-shell-commands-macos-add-to-photos to dwim-shell-commands.el (the optional part of the package).

(defun dwim-shell-commands-macos-add-to-photos ()
  "Add to Photos.app."
  (interactive)
  (dwim-shell-command-on-marked-files
   "Add to Photos.app"
   "osascript <>\"
  end tell
EOF"
   :silent-success t
   :utils "osascript"
   :on-completion (lambda (buffer process)
                    (if-let ((success (= (process-exit-status process) 0)))
                        (start-process "Open Photos" nil "open" "-a" "Photos")
                      (switch-to-buffer buffer)))))
  1. Select 1 or multiple photos from dired
  2. M-x dwim-shell-commands-macos-add-to-photos

ps. This also works on current buffer if you’re viewing an image in a buffer.

permalink
report
reply