aboutsummaryrefslogtreecommitdiffstats
path: root/autoload
diff options
context:
space:
mode:
authorTeddy Wing2015-08-16 14:45:33 -0400
committerTeddy Wing2015-08-16 14:45:33 -0400
commit71ec214cdb8814ecb71c837bf947583fda54d37e (patch)
tree61f1adb88b7268aa958dcaf615ffab0a85ffe918 /autoload
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 'autoload')
-rw-r--r--autoload/auditory.vim7
1 files changed, 3 insertions, 4 deletions
diff --git a/autoload/auditory.vim b/autoload/auditory.vim
index e214974..994b64e 100644
--- a/autoload/auditory.vim
+++ b/autoload/auditory.vim
@@ -169,20 +169,19 @@ function! s:GalaxyFarFarAway()
endfunction
-let s:galaxy_far_far_away = 0
function! auditory#ToggleGalaxyFarFarAway()
- if s:galaxy_far_far_away
+ if g:auditory_galaxy_far_far_away
augroup auditory#insert_mode
autocmd!
autocmd CursorMovedI * call auditory#PlayScale()
augroup END
- let s:galaxy_far_far_away = 0
+ let g:auditory_galaxy_far_far_away = 0
else
augroup auditory#insert_mode
autocmd!
autocmd CursorMovedI * call <SID>GalaxyFarFarAway()
augroup END
- let s:galaxy_far_far_away = 1
+ let g:auditory_galaxy_far_far_away = 1
endif
endfunction