Use local binds for writeroom-mode

parent 5f75de4b
......@@ -496,9 +496,12 @@ in
writeroom-mode = {
enable = true;
command = [ "writeroom-mode" ];
bind = {
"M-[" = "writeroom-decrease-width";
"M-]" = "writeroom-increase-width";
bindLocal = {
writeroom-mode-map = {
"M-[" = "writeroom-decrease-width";
"M-]" = "writeroom-increase-width";
"M-'" = "writeroom-toggle-mode-line";
};
};
hook = [ "(writeroom-mode . visual-line-mode)" ];
config = ''
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment