4211abccf2eb9501a9b22e7185ec71ad9b366d2a
compute/emacs-stuff.md
| ... | ... | @@ -4,8 +4,10 @@ |
| 4 | 4 | |
| 5 | 5 | ``` |
| 6 | 6 | $ BUNDLE=$(osascript -e 'id of app "Emacs Client"') # or just "Emacs" if not using emacs-plus |
| 7 | -org.gnu.Emacs |
|
| 7 | +$ echo $BUNDLE |
|
| 8 | 8 | $ defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add "{LSHandlerContentType=public.plain-text; LSHandlerRoleAll=$BUNDLE;}" |
| 9 | +$ defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add "{LSHandlerContentType=public.data; LSHandlerRoleAll=$BUNDLE;}" |
|
| 10 | +$ defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add "{LSHandlerContentType=public.unix-executable; LSHandlerRoleAll=$BUNDLE;}" |
|
| 9 | 11 | <reboot> |
| 10 | 12 | ``` |
| 11 | 13 |