Add poke-line, replace visual-fill-column with olivetti
This commit is contained in:
parent
97f4cad08c
commit
45e8cf7bbf
73
init.el
73
init.el
|
@ -12,22 +12,14 @@
|
||||||
(setq user-full-name "Evie Litherland-Smith"
|
(setq user-full-name "Evie Litherland-Smith"
|
||||||
user-mail-address "evie@xenia.me.uk"
|
user-mail-address "evie@xenia.me.uk"
|
||||||
use-short-answers t
|
use-short-answers t
|
||||||
kill-do-not-save-duplicates t)
|
kill-do-not-save-duplicates t
|
||||||
|
backup-directory-alist '(("." . "~/.local/state/emacs/backups"))
|
||||||
(set-language-environment "UTF-8")
|
split-height-threshold nil
|
||||||
(set-default-coding-systems 'utf-8)
|
split-width-threshold 160
|
||||||
(global-auto-revert-mode +1)
|
tab-always-indent 'complete
|
||||||
(delete-selection-mode +1)
|
tab-first-completion 'word
|
||||||
|
completion-cycle-threshold nil
|
||||||
;; (setq warning-minimum-level :error)
|
completions-detailed t)
|
||||||
|
|
||||||
(keymap-global-set "<mouse-8>" #'previous-buffer)
|
|
||||||
(keymap-global-set "<mouse-9>" #'next-buffer)
|
|
||||||
|
|
||||||
(setq backup-directory-alist '(("." . "~/.local/state/emacs/backups")))
|
|
||||||
|
|
||||||
(use-package secrets
|
|
||||||
:functions (secrets-get-secret))
|
|
||||||
|
|
||||||
(setq-default truncate-lines t
|
(setq-default truncate-lines t
|
||||||
truncate-partial-width-windows nil)
|
truncate-partial-width-windows nil)
|
||||||
|
@ -38,9 +30,19 @@
|
||||||
tab-bar-show 1
|
tab-bar-show 1
|
||||||
tab-line-tabs-function 'tab-line-tabs-mode-buffers)
|
tab-line-tabs-function 'tab-line-tabs-mode-buffers)
|
||||||
|
|
||||||
|
(set-language-environment "UTF-8")
|
||||||
|
(set-default-coding-systems 'utf-8)
|
||||||
|
(global-auto-revert-mode +1)
|
||||||
|
(delete-selection-mode +1)
|
||||||
|
|
||||||
|
(keymap-global-set "<mouse-8>" #'previous-buffer)
|
||||||
|
(keymap-global-set "<mouse-9>" #'next-buffer)
|
||||||
|
|
||||||
(menu-bar-mode -1)
|
(menu-bar-mode -1)
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
(scroll-bar-mode -1)
|
(scroll-bar-mode -1)
|
||||||
|
(global-so-long-mode +1)
|
||||||
|
(global-visual-line-mode +1)
|
||||||
(global-prettify-symbols-mode +1)
|
(global-prettify-symbols-mode +1)
|
||||||
|
|
||||||
;; Some witchcraft to enable ligatures, from
|
;; Some witchcraft to enable ligatures, from
|
||||||
|
@ -76,6 +78,9 @@
|
||||||
(set-char-table-range composition-function-table (car char-regexp)
|
(set-char-table-range composition-function-table (car char-regexp)
|
||||||
`([,(cdr char-regexp) 0 font-shape-gstring]))))
|
`([,(cdr char-regexp) 0 font-shape-gstring]))))
|
||||||
|
|
||||||
|
(use-package secrets
|
||||||
|
:functions (secrets-get-secret))
|
||||||
|
|
||||||
(use-package nerd-icons
|
(use-package nerd-icons
|
||||||
:if (package-installed-p 'nerd-icons)
|
:if (package-installed-p 'nerd-icons)
|
||||||
:functions (nerd-icons-octicon))
|
:functions (nerd-icons-octicon))
|
||||||
|
@ -111,9 +116,6 @@
|
||||||
(doom-modeline-lsp t)
|
(doom-modeline-lsp t)
|
||||||
(doom-modeline-project-detection 'project)
|
(doom-modeline-project-detection 'project)
|
||||||
:init
|
:init
|
||||||
(line-number-mode +1)
|
|
||||||
(column-number-mode +1)
|
|
||||||
(size-indication-mode -1)
|
|
||||||
(doom-modeline-mode +1)
|
(doom-modeline-mode +1)
|
||||||
:config
|
:config
|
||||||
(set-face-attribute 'doom-modeline nil :weight 'normal)
|
(set-face-attribute 'doom-modeline nil :weight 'normal)
|
||||||
|
@ -125,25 +127,24 @@
|
||||||
:custom
|
:custom
|
||||||
(which-func-modes '(prog-mode)))
|
(which-func-modes '(prog-mode)))
|
||||||
|
|
||||||
(global-so-long-mode +1)
|
(use-package poke-line
|
||||||
(global-visual-line-mode +1)
|
:if (package-installed-p 'poke-line)
|
||||||
|
:functions (poke-line-global-mode)
|
||||||
(use-package visual-fill-column
|
|
||||||
:if (package-installed-p 'visual-fill-column)
|
|
||||||
:functions (visual-line-fill-column-mode)
|
|
||||||
:bind (("C-x x w" . visual-line-fill-column-mode))
|
|
||||||
:custom
|
:custom
|
||||||
(visual-fill-column-width 120)
|
(poke-line-pokemon "rotom")
|
||||||
(visual-fill-column-center-text t)
|
:init
|
||||||
(visual-fill-column-enable-sensible-window-split t))
|
(line-number-mode -1)
|
||||||
|
(column-number-mode -1)
|
||||||
|
(size-indication-mode -1)
|
||||||
|
(poke-line-global-mode +1))
|
||||||
|
|
||||||
(setq split-height-threshold nil
|
(use-package olivetti
|
||||||
split-width-threshold 160)
|
:if (package-installed-p 'olivetti)
|
||||||
|
:hook (text-mode)
|
||||||
(setq tab-always-indent 'complete
|
:custom
|
||||||
tab-first-completion 'word
|
(olivetti-style nil)
|
||||||
completion-cycle-threshold nil
|
(olivetti-body-width 0.75)
|
||||||
completions-detailed t)
|
(olivetti-minimum-body-width 120))
|
||||||
|
|
||||||
(use-package tramp
|
(use-package tramp
|
||||||
:defines (tramp-remote-path tramp-default-proxies-alist)
|
:defines (tramp-remote-path tramp-default-proxies-alist)
|
||||||
|
|
Loading…
Reference in a new issue