80a5ff7d90cab8817f3dbb166f669d4b6c073ee1
compute/emacs-stuff.md
| ... | ... | @@ -1,6 +1,17 @@ |
| 1 | 1 | <!-- TITLE: Emacs Stuff --> |
| 2 | 2 | <!-- SUBTITLE: Interesting things in emacs --> |
| 3 | 3 | |
| 4 | +### Change the defailt text editor in OSX |
|
| 5 | + |
|
| 6 | +``` |
|
| 7 | +$ osascript -e 'id of app "Emacs"' |
|
| 8 | +org.gnu.Emacs |
|
| 9 | +$ defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add '{LSHandlerContentType=public.plain-text; LSHandlerRoleAll=org.gnu.Emacs;}' |
|
| 10 | +<reboot |
|
| 11 | +``` |
|
| 12 | + |
|
| 13 | +### Emacs commands |
|
| 14 | + |
|
| 4 | 15 | ``` |
| 5 | 16 | M-| |
| 6 | 17 | ``` |