Last active
December 22, 2015 09:49
-
-
Save flc/6454469 to your computer and use it in GitHub Desktop.
little script that adds .go filetype support to Geany
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp /usr/share/geany/filetype_extensions.conf ~/.config/geany | |
echo "Go=*.go;" >> ~/.config/geany/filetype_extensions.conf | |
cp /usr/share/geany/filetypes.c ~/.config/geany/filedefs/filetypes.Go.conf | |
sed -i 's/extension=c/extension=go\nlexer_filetype=C/g' ~/.config/geany/filedefs/filetypes.Go.conf | |
sed -i 's/primary=.*/primary=break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var/g' ~/.config/geany/filedefs/filetypes.Go.conf | |
sed -i 's/secondary=.*/secondary=byte int int8 int16 int32 int64 uint uint8 uint16 uint32 uint64 float32 float64 complex64 complex128 uintptr string/g' ~/.config/geany/filedefs/filetypes.Go.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment