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; -*-
|
||||
|
||||
;; Time-stamp: <2019-12-26T21:11:25+0100>
|
||||
;; Time-stamp: <2020-01-27T02:37:47+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -11,6 +11,12 @@
|
|||
(use-package emacs
|
||||
: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
|
||||
(tool-bar-mode -1) ; Hide toolbar.
|
||||
(if (display-graphic-p)
|
||||
|
@ -69,16 +75,6 @@
|
|||
(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.
|
||||
(use-package display-line-numbers
|
||||
:if (>= emacs-major-version 26)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; 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:
|
||||
;; * Setup scratch buffer.
|
||||
|
@ -50,7 +50,6 @@
|
|||
;; Delete old buffers.
|
||||
;; https://www.emacswiki.org/emacs/CleanBufferList
|
||||
(use-package midnight
|
||||
:ensure nil ; Builtin.
|
||||
:defer 10
|
||||
|
||||
:init
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-01-26T06:58:53+0100>
|
||||
;; Time-stamp: <2020-01-27T02:35:00+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -57,8 +57,6 @@
|
|||
|
||||
;; Set coding style.
|
||||
(use-package cc-mode
|
||||
:ensure nil ; Builtin.
|
||||
|
||||
:config
|
||||
(c-add-style ; Construct own coding style definition.
|
||||
"tastytea"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; 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:
|
||||
|
||||
|
@ -235,9 +235,7 @@
|
|||
(editorconfig-mode 1)
|
||||
)
|
||||
|
||||
(use-package smerge
|
||||
:ensure nil ; Builtin.
|
||||
|
||||
(use-package smerge-mode
|
||||
:defines (smerge-mode-map)
|
||||
|
||||
:bind
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
;;; 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:
|
||||
|
||||
|
@ -18,22 +18,22 @@
|
|||
(truncate-line t) ; No continuation lines.
|
||||
(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
|
||||
(text-mode . auto-fill-mode) ; Enable word-wrapping at fill-column.
|
||||
)
|
||||
|
||||
;; Save cursor position.
|
||||
(use-package saveplace
|
||||
:ensure nil ; Builtin.
|
||||
|
||||
:config
|
||||
(save-place-mode t)
|
||||
)
|
||||
|
||||
;; Ruler with fill-column marker.
|
||||
(use-package ruler-mode
|
||||
:ensure nil ; Builtin.
|
||||
|
||||
:config
|
||||
(defun my/ruler-on ()
|
||||
"Turn `ruler-mode' on."
|
||||
|
@ -290,14 +290,6 @@
|
|||
(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)
|
||||
|
||||
(provide 'text/common)
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
127.0.0.1:51313 30672
|
||||
127.0.0.1:51313 10169
|
||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user