diff options
author | bd <bdunahu@colostate.edu> | 2024-01-10 19:44:21 -0700 |
---|---|---|
committer | bd <bdunahu@colostate.edu> | 2024-01-10 19:44:21 -0700 |
commit | 1ced565816120bfcc351daf9fc3a4e851162e3b7 (patch) | |
tree | 93e9c23660cd07f4dba861f334b23c03d322f48c /.config/emacs/modules/bd--image.el | |
parent | da5922a476cebdbbf338f0192165dbbbcd3f7b6f (diff) |
Initial commit of new repository structure
Diffstat (limited to '.config/emacs/modules/bd--image.el')
-rw-r--r-- | .config/emacs/modules/bd--image.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.config/emacs/modules/bd--image.el b/.config/emacs/modules/bd--image.el new file mode 100644 index 0000000..3dd2526 --- /dev/null +++ b/.config/emacs/modules/bd--image.el @@ -0,0 +1,23 @@ +;; -*- lexical-binding: t; -*- + + +(require 'image-mode) +(defun toggle-mode-line () + "If the mode line is displayed, toggle it off. +If the mode line is off, set it to the default value." + (interactive) + (setq mode-line-format + (if mode-line-format + nil + (default-value 'mode-line-format)))) + + +;;;; hooks +(add-hook 'image-mode-hook 'toggle-mode-line) + + +;;;; binds +(keymap-set image-mode-map "l" #'toggle-mode-line) + + +(provide 'bd--image) |