瀏覽代碼

Fix nyan-mode set length

master
10sr 4 年之前
父節點
當前提交
88d8ae93d3
簽署人: 10sr GPG 金鑰 ID: C384BB17CBB19347
共有 1 個檔案被更改,包括 9 行新增4 行删除
  1. +9
    -4
      emacs.el

+ 9
- 4
emacs.el 查看文件

@@ -800,11 +800,16 @@ THEM are function and its args."
;; (when f
;; (abbreviate-file-name f))))
))
(defun my-nyan-set-length (&rest _)
"Set `nyan-mode' length to window width."
(set-variable 'nyan-bar-length
(- (window-size nil t) 4)
t))
(add-hook 'window-configuration-change-hook
(lambda ()
(set-variable 'nyan-bar-length
(- (window-size nil t) 4)
t))))
'my-nyan-set-length)
(add-hook 'switch-buffer-functions
'my-nyan-set-length)
)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; letters, font-lock mode and fonts


Loading…
取消
儲存