doomemacs/init/core-ui.el

38 lines
1.2 KiB
EmacsLisp
Raw Normal View History

2014-08-08 06:35:22 +08:00
(my/install-package 'diminish)
(global-linum-mode t) ; line numbers for everybody!
2014-07-15 14:21:56 +08:00
;; Sane scroll settings
2014-07-15 14:21:56 +08:00
(setq scroll-margin 3
scroll-conservatively 100000
scroll-preserve-screen-position 1)
;; Show line/col-no in mode-line
2014-07-15 14:21:56 +08:00
(line-number-mode t)
(column-number-mode t)
;; make the fringe unintrusive
2014-08-08 06:35:22 +08:00
(when (fboundp 'fringe-mode) (fringe-mode 8))
2014-07-15 14:21:56 +08:00
;; Line numbers with +1 left-padding
2014-07-16 15:28:06 +08:00
(defadvice linum-update-window (around linum-dynamic activate)
(let* ((w (length (number-to-string (count-lines (point-min) (point-max)))))
(linum-format (concat "%" (number-to-string (+ w 1)) "d" (if window-system "" " ")))) ad-do-it))
2014-07-23 11:24:02 +08:00
;; Show full path in window title
(setq frame-title-format
'(:eval (if (buffer-file-name) (abbreviate-file-name (buffer-file-name)) "%b")))
2014-07-16 15:28:06 +08:00
2014-07-15 14:21:56 +08:00
;;;; GUI Settings ;;;;;;;;;;;;;;;;;;;;;
(setq ring-bell-function 'ignore)
2014-08-08 06:35:22 +08:00
(add-to-list 'default-frame-alist `(font . ,my/font))
(add-to-list 'default-frame-alist '(alpha 98 95)) ; *slightly* transparent window
2014-07-21 15:52:01 +08:00
(when (functionp 'tool-bar-mode) (tool-bar-mode -1))
(when (functionp 'scroll-bar-mode) (scroll-bar-mode -1))
(when (functionp 'menu-bar-mode) (menu-bar-mode -1))
2014-07-15 14:21:56 +08:00
;;
(provide 'core-ui)