emacs.d/bundle/bundle--defaults.el

107 lines
3.4 KiB
EmacsLisp
Raw Normal View History

;; General user interface and appearance
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(horizontal-scroll-bar-mode -1)
(global-hl-line-mode 1)
2020-11-26 17:57:36 +01:00
(display-time-mode 1)
2020-11-19 19:48:22 +01:00
(global-prettify-symbols-mode 1)
2021-04-29 22:37:03 +02:00
(set-fringe-mode 10)
(setq-default display-time-format "%V %F %R %a")
(setq-default display-time-24hr-format t)
;; Cursor and mouse
2020-12-01 17:32:43 +01:00
(column-number-mode 1)
(mouse-wheel-mode 1)
(blink-cursor-mode -1)
;; Customization for locale, environment and computer
2020-11-21 14:37:26 +01:00
(setq-default european-calendar-style t)
(setq-default calendar-christian-all-holidays-flag t)
(setq-default calendar-date-style (quote iso))
(setq-default calendar-view-diary-initially-flag t)
(setq-default calendar-week-start-day 1)
2020-11-25 08:45:20 +01:00
(setq-default calendar-intermonth-text
'(propertize
(format "%2d"
(car
(calendar-iso-from-absolute
(calendar-absolute-from-gregorian
2020-11-26 21:06:58 +01:00
(list month day year )))))
2020-11-25 08:45:20 +01:00
'font-lock-face 'font-lock-function-name-face))
(setq-default ispell-program-name "aspell")
(setq-default grep-command "grep -i -nH -e ")
2020-11-26 21:06:58 +01:00
(when (eq system-type 'gnu/linux)
(setq-default shell-file-name "/bin/bash")
(setq-default tex-shell-file-name "/bin/bash"))
;; Files and sessions
(setq-default auto-save-timeout 60)
;; Tabs, spaces, lines and parenthesis
(show-paren-mode 1)
(setq-default indent-tabs-mode nil)
(setq-default line-spacing nil)
(setq-default make-backup-files nil)
(setq tab-width 4)
(setq sentence-end-double-space nil)
(setq next-line-add-newlines t)
2020-11-21 14:37:26 +01:00
(setq require-final-newline t)
;; Miscellaneous
(require 'cl-lib)
2020-11-21 14:37:26 +01:00
(setq default-major-mode 'text-mode)
(setq-default inhibit-startup-buffer-menu t
inhibit-startup-screen t)
2020-11-21 14:37:26 +01:00
(setq-default tramp-default-method "ssh")
(put 'narrow-to-region 'disabled nil)
(put 'narrow-to-page 'disabled nil)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(defalias 'yes-or-no-p 'y-or-n-p)
2020-11-26 20:54:37 +01:00
;; Mode line
(setq-default mode-line-format
2020-12-02 17:43:34 +01:00
'((""
mode-line-modified
2020-12-02 17:48:32 +01:00
mode-line-frame-control "%b %z%n "
2020-12-01 17:32:43 +01:00
mode-name
vc-mode
2020-12-02 08:14:03 +01:00
" "
2020-12-01 17:32:43 +01:00
mode-line-position
mode-line-misc-info
2020-12-02 17:43:34 +01:00
minor-mode-alist
mode-line-end-spaces "%-"
2020-12-01 17:32:43 +01:00
)))
2021-04-30 07:50:32 +02:00
;; Disable line numbers in modes
(dolist (mode '(org-mode-hook
term-mode-hook
shell-mode-hook
eshell-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0))))
2021-11-04 08:29:13 +01:00
(add-hook 'after-save-hook
'executable-make-buffer-file-executable-if-script-p)
2021-12-15 17:57:47 +01:00
(global-set-key (kbd "M-i") 'imenu)
;;(global-set-key (kbd "M-[") 'tab-bar-history-back)
;;(global-set-key (kbd "M-]") 'tab-bar-history-forward)
2021-12-15 18:04:43 +01:00
(add-hook 'diary-display-hook 'fancy-diary-display)
(add-hook 'today-visible-calendar-hook 'calendar-mark-today)
(add-hook 'write-file-hooks 'delete-trailing-whitespace)
(add-hook 'diary-list-entries-hook 'diary-include-other-diary-files)
(add-hook 'diary-mark-entries-hook 'diary-mark-included-diary-files)
2021-12-28 11:43:47 +01:00
(setq compilation-ask-about-save nil)
2022-04-06 13:14:43 +02:00
(setq vc-handled-backends '(Git Hg)) ;; Only use Git and Hg for VC
2022-04-23 10:07:57 +02:00
(setq default-frame-alist
'((font . "MonoLisa-12")
(width . 92)
(height . 62)
(alpha . 100)
(horizontal-scroll-bars)
(vertical-scroll-bars)))