This commit is contained in:
Marcus Kammer 2020-11-25 09:38:44 +01:00
commit 4dfd297f8f
3 changed files with 37 additions and 16 deletions

View file

@ -7,6 +7,7 @@
(define-key menu-bar-tools-menu [games] nil)
(display-time-mode 1)
(global-prettify-symbols-mode 1)
(setq-default mode-line-format nil)
;; Cursor and mouse
(column-number-mode -1)
@ -19,6 +20,14 @@
(setq-default calendar-date-style (quote iso))
(setq-default calendar-view-diary-initially-flag t)
(setq-default calendar-week-start-day 1)
(setq-default calendar-intermonth-text
'(propertize
(format "%2d"
(car
(calendar-iso-from-absolute
(calendar-absolute-from-gregorian
(list month day year)))))
'font-lock-face 'font-lock-function-name-face))
(setq-default ispell-program-name "aspell")
(setq-default grep-command "grep -i -nH -e ")
(when (eq system-type 'gnu/linux)

View file

@ -1,13 +1,34 @@
(defun mk-write-mode-enable ()
(setq olivetti-body-width 73)
(setq mode-line-format nil)
(olivetti-mode))
(defun mk-write-mode-disable ()
(setq mode-line-format '(("-" mode-line-mule-info mode-line-modified mode-line-frame-identification mode-line-buffer-identification " " mode-line-position mode-line-modes (which-func-mode ("" which-func-format "--")) (global-mode-string ("--" global-mode-string)) "-%-")))
(olivetti-mode)
(require 'ox-latex)
(defun mk-show-modeline ()
(interactive)
(setq mode-line-format
'(("-" mode-line-mule-info
mode-line-modified
mode-line-frame-identification
mode-line-buffer-identification " "
mode-line-position
mode-line-modes
(which-func-mode
("" which-func-format "--"))
(global-mode-string
("--" global-mode-string)) "-%-")))
(defvar mode-line-format-current
(symbol-value 'mode-line-format)))
(defun mk-hide-modeline ()
(interactive)
(setq mode-line-format nil))
(defun mk-write-mode-enable ()
(setq olivetti-body-width 73)
(olivetti-mode)
(mk-hide-modeline))
(defun mk-write-mode-disable ()
(olivetti-mode)
(mk-show-modeline))
(defun me/split-windows-horizontal ()
"Split windows horizontal by equal width."
(interactive)
@ -30,7 +51,6 @@
(split-window-below (- 0 height))
(setq count (1+ count)))))
(require 'ox-latex)
(add-to-list 'org-latex-classes
'("koma-article"
"\\documentclass{scrartcl}"

View file

@ -10,14 +10,6 @@
["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
'(backup-directory-alist '(("." . "~/.backup_filez")))
'(browse-url-secondary-browser-function 'browse-url-firefox)
'(calendar-intermonth-text
'(propertize
(format "%2d"
(car
(calendar-iso-from-absolute
(calendar-absolute-from-gregorian
(list month day year)))))
'font-lock-face 'font-lock-function-name-face))
'(custom-enabled-themes '(nord))
'(custom-safe-themes
'("37768a79b479684b0756dec7c0fc7652082910c37d8863c35b702db3f16000f8" "06bf0822aa77ea498bbd6038b59ad96fca43b272b49b18ab024218881ba134d1" "6e933f1668e124ec17fc7b6547f65ba760e06efb568a6c8091c600c67827e592" "7f6d4aebcc44c264a64e714c3d9d1e903284305fd7e319e7cb73345a9994f5ef" default))