aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2015-08-16 14:45:33 -0400
committerTeddy Wing2015-08-16 14:45:33 -0400
commit71ec214cdb8814ecb71c837bf947583fda54d37e (patch)
tree61f1adb88b7268aa958dcaf615ffab0a85ffe918 /plugin
parent87452e0058fb8984b678947d33715b155dd3dbf0 (diff)
downloadauditory.vim-71ec214cdb8814ecb71c837bf947583fda54d37e.tar.bz2
Create a setting for Galaxy Far Far Away sounds
Adding a configuration variable for these sounds allows them to be turned on by default without having to `:AuditoryToggleGalaxyFarFarAway`, so if you prefer these sounds you can enable them at the outset.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/auditory.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugin/auditory.vim b/plugin/auditory.vim
index 378fd39..d740561 100644
--- a/plugin/auditory.vim
+++ b/plugin/auditory.vim
@@ -15,6 +15,10 @@ if !exists('g:auditory_on')
let g:auditory_on = 0
endif
+if !exists('g:auditory_galaxy_far_far_away')
+ let g:auditory_galaxy_far_far_away = 0
+endif
+
command! AuditoryOn call auditory#AssignMappings()
command! AuditoryOff call auditory#Unmap()
@@ -25,3 +29,8 @@ command! AuditoryToggleGalaxyFarFarAway call auditory#ToggleGalaxyFarFarAway()
if g:auditory_on
call auditory#AssignMappings()
endif
+
+if g:auditory_galaxy_far_far_away
+ let g:auditory_galaxy_far_far_away = 0
+ call auditory#ToggleGalaxyFarFarAway()
+endif