2014-09-05 17:08:40 -04:00
|
|
|
(provide 'core-ui)
|
|
|
|
|
|
|
|
;; (global-linum-mode t) ; line numbers for everybody!
|
|
|
|
;; (blink-cursor-mode -1)
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-07-17 02:59:23 -04:00
|
|
|
;; Show line/col-no in mode-line
|
2014-07-15 02:21:56 -04:00
|
|
|
(line-number-mode t)
|
|
|
|
(column-number-mode t)
|
|
|
|
|
2014-07-17 02:59:23 -04:00
|
|
|
;; make the fringe unintrusive
|
2014-08-07 18:35:22 -04:00
|
|
|
(when (fboundp 'fringe-mode) (fringe-mode 8))
|
2014-07-15 02:21:56 -04:00
|
|
|
|
2014-07-17 02:59:23 -04:00
|
|
|
;; Line numbers with +1 left-padding
|
2014-09-05 17:08:40 -04: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" " "))) ad-do-it))
|
2014-07-17 02:59:23 -04:00
|
|
|
|
2014-07-22 23:24:02 -04: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 03:28:06 -04:00
|
|
|
|
2014-09-05 17:08:40 -04:00
|
|
|
;; Whitespaces (activate whitespace-mode to see)
|
|
|
|
(setq whitespace-style '(face trailing tab-mark))
|
|
|
|
|
|
|
|
;; do not soft-wrap lines
|
|
|
|
(setq-default truncate-lines t)
|
|
|
|
(setq truncate-partial-width-windows nil)
|
2014-09-05 21:56:07 -04:00
|
|
|
(add-hook 'help-mode-hook (lambda() (setq truncate-lines nil)))
|
2014-09-05 17:08:40 -04:00
|
|
|
|
|
|
|
(setq ediff-window-setup-function 'ediff-setup-windows-plain)
|
|
|
|
|
|
|
|
(setq indicate-buffer-boundaries nil)
|
|
|
|
(setq indicate-empty-lines nil)
|
|
|
|
|
|
|
|
(setq-default visible-bell nil)
|
|
|
|
(setq-default use-dialog-box nil)
|
|
|
|
|
2014-07-15 02:21:56 -04:00
|
|
|
;;;; GUI Settings ;;;;;;;;;;;;;;;;;;;;;
|
2014-07-20 09:01:56 -04:00
|
|
|
(setq ring-bell-function 'ignore)
|
2014-09-05 17:08:40 -04:00
|
|
|
(add-to-list 'default-frame-alist `(font . ,*font))
|
2014-08-07 18:35:22 -04:00
|
|
|
(add-to-list 'default-frame-alist '(alpha 98 95)) ; *slightly* transparent window
|
2014-07-20 09:01:56 -04:00
|
|
|
|
2014-07-21 03:52:01 -04: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))
|