aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-utils.el
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-13 02:43:54 +0800
committerGuangxiong Lin <[email protected]>2022-03-13 02:43:54 +0800
commit52663428184b2f13611bcbdae8431fd9605b1d7e (patch)
tree111f3ad8721267d827c1b3abe83e1fe4ab87d8f7 /.emacs.d/lisp/init-utils.el
parent1957e46551dfd1acfcd53fec17fd9630304a11db (diff)
downloaddotfiles-52663428184b2f13611bcbdae8431fd9605b1d7e.tar.gz
dotfiles-52663428184b2f13611bcbdae8431fd9605b1d7e.tar.bz2
dotfiles-52663428184b2f13611bcbdae8431fd9605b1d7e.zip
Add diminish package (emacs)
Diffstat (limited to '.emacs.d/lisp/init-utils.el')
-rw-r--r--.emacs.d/lisp/init-utils.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-utils.el b/.emacs.d/lisp/init-utils.el
new file mode 100644
index 0000000..2f4118c
--- /dev/null
+++ b/.emacs.d/lisp/init-utils.el
@@ -0,0 +1,5 @@
+(defun gx/diminish (mode &optional to-what)
+ (when (gx/maybe-require-package 'diminish)
+ (diminish mode to-what)))
+
+(provide 'init-utils)