Emacs: Clean up init files a bit.
This commit is contained in:
parent
8664fe9a90
commit
cb83cd5ae7
|
@ -1,6 +1,6 @@
|
||||||
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2019-12-26T21:11:25+0100>
|
;; Time-stamp: <2020-01-27T02:37:47+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -11,6 +11,12 @@
|
||||||
(use-package emacs
|
(use-package emacs
|
||||||
:ensure nil
|
:ensure nil
|
||||||
|
|
||||||
|
:custom
|
||||||
|
;; If 2 files have the same name, append directory name after the filename.
|
||||||
|
(uniquify-after-kill-buffer-p t)
|
||||||
|
(uniquify-buffer-name-style 'post-forward)
|
||||||
|
(uniquify-strip-common-suffix t)
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(tool-bar-mode -1) ; Hide toolbar.
|
(tool-bar-mode -1) ; Hide toolbar.
|
||||||
(if (display-graphic-p)
|
(if (display-graphic-p)
|
||||||
|
@ -69,16 +75,6 @@
|
||||||
(after-init . doom-modeline-mode)
|
(after-init . doom-modeline-mode)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; If 2 files have the same name, append directory name after the filename.
|
|
||||||
(use-package uniquify
|
|
||||||
:ensure nil ; Builtin.
|
|
||||||
|
|
||||||
:custom
|
|
||||||
(uniquify-after-kill-buffer-p t)
|
|
||||||
(uniquify-buffer-name-style 'post-forward)
|
|
||||||
(uniquify-strip-common-suffix t)
|
|
||||||
)
|
|
||||||
|
|
||||||
;; Show line numbers on the left side of the buffer.
|
;; Show line numbers on the left side of the buffer.
|
||||||
(use-package display-line-numbers
|
(use-package display-line-numbers
|
||||||
:if (>= emacs-major-version 26)
|
:if (>= emacs-major-version 26)
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
|
;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-01-25T00:27:35+0100>
|
;; Time-stamp: <2020-01-27T02:35:31+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
;; * Setup scratch buffer.
|
;; * Setup scratch buffer.
|
||||||
|
@ -50,7 +50,6 @@
|
||||||
;; Delete old buffers.
|
;; Delete old buffers.
|
||||||
;; https://www.emacswiki.org/emacs/CleanBufferList
|
;; https://www.emacswiki.org/emacs/CleanBufferList
|
||||||
(use-package midnight
|
(use-package midnight
|
||||||
:ensure nil ; Builtin.
|
|
||||||
:defer 10
|
:defer 10
|
||||||
|
|
||||||
:init
|
:init
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-01-26T06:58:53+0100>
|
;; Time-stamp: <2020-01-27T02:35:00+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -57,8 +57,6 @@
|
||||||
|
|
||||||
;; Set coding style.
|
;; Set coding style.
|
||||||
(use-package cc-mode
|
(use-package cc-mode
|
||||||
:ensure nil ; Builtin.
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(c-add-style ; Construct own coding style definition.
|
(c-add-style ; Construct own coding style definition.
|
||||||
"tastytea"
|
"tastytea"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-01-27T02:09:18+0100>
|
;; Time-stamp: <2020-01-27T02:32:14+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -235,9 +235,7 @@
|
||||||
(editorconfig-mode 1)
|
(editorconfig-mode 1)
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package smerge
|
(use-package smerge-mode
|
||||||
:ensure nil ; Builtin.
|
|
||||||
|
|
||||||
:defines (smerge-mode-map)
|
:defines (smerge-mode-map)
|
||||||
|
|
||||||
:bind
|
:bind
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
;;; common.el --- Common settings for text files. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-01-27T02:00:27+0100>
|
;; Time-stamp: <2020-01-27T02:39:04+0100>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -18,22 +18,22 @@
|
||||||
(truncate-line t) ; No continuation lines.
|
(truncate-line t) ; No continuation lines.
|
||||||
(truncate-lines t) ; The same?
|
(truncate-lines t) ; The same?
|
||||||
|
|
||||||
|
:bind
|
||||||
|
("C-r" . jump-to-register) ; Move point to location in register.
|
||||||
|
("C-S-r" . point-to-register) ; Store location of point in register.
|
||||||
|
|
||||||
:hook
|
:hook
|
||||||
(text-mode . auto-fill-mode) ; Enable word-wrapping at fill-column.
|
(text-mode . auto-fill-mode) ; Enable word-wrapping at fill-column.
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Save cursor position.
|
;; Save cursor position.
|
||||||
(use-package saveplace
|
(use-package saveplace
|
||||||
:ensure nil ; Builtin.
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(save-place-mode t)
|
(save-place-mode t)
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Ruler with fill-column marker.
|
;; Ruler with fill-column marker.
|
||||||
(use-package ruler-mode
|
(use-package ruler-mode
|
||||||
:ensure nil ; Builtin.
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(defun my/ruler-on ()
|
(defun my/ruler-on ()
|
||||||
"Turn `ruler-mode' on."
|
"Turn `ruler-mode' on."
|
||||||
|
@ -290,14 +290,6 @@
|
||||||
(whitespace-space ((nil :foreground "gray18")))
|
(whitespace-space ((nil :foreground "gray18")))
|
||||||
)
|
)
|
||||||
|
|
||||||
(use-package register
|
|
||||||
:ensure nil ; Builtin.
|
|
||||||
|
|
||||||
:bind
|
|
||||||
("C-r" . jump-to-register) ; Move point to location in register.
|
|
||||||
("C-S-r" . point-to-register) ; Store location of point in register.
|
|
||||||
)
|
|
||||||
|
|
||||||
(use-package ripgrep)
|
(use-package ripgrep)
|
||||||
|
|
||||||
(provide 'text/common)
|
(provide 'text/common)
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 30672
|
127.0.0.1:51313 10169
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user