1

In helm, when finding a file, C-c C-x would prompt for open with external program option. Is there a way to set a default program, say, smplayer for .mov file. Then I can just press Enter to open it.

1

I found the answer by pressing C-u C-c C-x when running C-x C-f, which was rebind to helm-find-files.

(setq helm-external-programs-associations (quote (("rmvb" . "smplayer") ("mp4" . "smplayer"))))

This set helm to open files using designated programs. In this case, open .rmvb and .mp4 file using smplayer.

and

(setq large-file-warning-threshold 500000000)

Set the warning threshold to 500 MB, which will get ride of File abc.mp4 is large (330.2M), really open? (y or n) y annoying message. (Courtesy of @Nsukami _)

I hope this might be helpful to other new helm user.

2
  • If you open the file with external program the first time, Helm will ask. After that, Helm remembers your selection until you decide to choose something else.
    – Tu Do
    Dec 29 '14 at 7:48
  • @TuDo Yes. I noticed that helm wrote the above line (I modified a little) to my .emacs file. Helm and projectile really changed the habit of using emacs. Amazing package! Thank you.
    – Nick
    Dec 29 '14 at 7:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.