Re-ordered some blocks.

This commit is contained in:
tastytea 2019-03-22 01:57:44 +01:00
parent 379eb6c93f
commit f4e4075e29
2 changed files with 37 additions and 38 deletions

73
init.el
View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file.
;;; Time-stamp: <2019-03-22 01:00:06 CET>
;;; Time-stamp: <2019-03-22 01:57:36 CET>
;;; Commentary:
;;; I am using this file with Emacs 26, but most of it will probably work with
@ -84,9 +84,6 @@
;; Save minibuffer history
(savehist-mode t)
;; Show column numbers in modeline
(column-number-mode t)
;; Save backups in ~/.emacs.d/ and keep more versions
(setq backup-directory-alist
`(("." . ,(concat user-emacs-directory "backups"))))
@ -128,29 +125,6 @@
:config
(smooth-scrolling-mode 1))
;; Delete old buffers
;; https://www.emacswiki.org/emacs/CleanBufferList
(use-package midnight
:config
(setq midnight-period (* 1 60 60) ; Clean every 1 hours
midnight-delay 0 ; 0 seconds after "midnight"
clean-buffer-list-delay-general 1 ; Clean normal bufs after 1d
clean-buffer-list-delay-special (* 30 60) ; Clean special bufs after 30m
clean-buffer-list-kill-regexps ; Add these to special buffers
(nconc clean-buffer-list-kill-regexps
'("\\`magit-?.*:"
"\\.log\\'")))
(midnight-mode t))
;; The string Time-stamp: <> in the first 8 lines of the file will be updated
;; with the current timestamp.
(use-package time-stamp
:config
(setq time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %Z")
:hook
(before-save . time-stamp))
;; Paste text where the cursor is, not where the mouse is.
(setq mouse-yank-at-point t)
@ -166,7 +140,7 @@
(global-set-key (kbd "M-<down>") 'scroll-up-line)
(global-set-key (kbd "M-<up>") 'scroll-down-line)
;;;;;;;;;;;;;;;;;;;; Programming / RTags ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;; Programming / C++ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package rtags
:unless slow-computer
:if (executable-find "llvm-config")
@ -207,6 +181,13 @@
(setq rtags-completions-enabled t)
(push 'company-rtags company-backends))
;; cmake integration
(use-package cmake-ide
:unless slow-computer
:config
(setq cmake-ide-build-dir "build")
(cmake-ide-setup))
;;;;;;;;;;;;;;;;;;;; Programming / other ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Online documentation mode
(use-package eldoc
@ -231,13 +212,6 @@
:config
(company-flx-mode +1))
;; cmake integration
(use-package cmake-ide
:unless slow-computer
:config
(setq cmake-ide-build-dir "build")
(cmake-ide-setup))
;; Indentation
(setq-default indent-tabs-mode nil
tab-width 4)
@ -265,8 +239,7 @@
:bind
("C-c p" . 'projectile-command-map)
(:map projectile-command-map
("k" . 'projectile-kill-buffers-and-change-tabbar-grouping))
)
("k" . 'projectile-kill-buffers-and-change-tabbar-grouping)))
;; Debugger
(use-package realgud
@ -338,6 +311,9 @@
;; Modeline
(use-package doom-modeline
:after all-the-icons
:init
;; Show column numbers in modeline
(column-number-mode t)
:config
(setq doom-modeline-minor-modes t)
:hook (after-init . doom-modeline-mode))
@ -526,6 +502,29 @@
(uniquify-buffer-name-style 'post-forward)
(uniquify-strip-common-suffix t))
;; Delete old buffers
;; https://www.emacswiki.org/emacs/CleanBufferList
(use-package midnight
:init
(setq midnight-delay 0) ; 0 seconds after "midnight"
:config
(setq midnight-period (* 1 60 60) ; Clean every 1 hours
clean-buffer-list-delay-general 1 ; Clean normal bufs after 1d
clean-buffer-list-delay-special (* 30 60) ; Clean special bufs after 30m
clean-buffer-list-kill-regexps ; Add these to special buffers
(nconc clean-buffer-list-kill-regexps
'("\\`magit-?.*:"
"\\.log\\'")))
(midnight-mode t))
;; The string Time-stamp: <> in the first 8 lines of the file will be updated
;; with the current timestamp.
(use-package time-stamp
:config
(setq time-stamp-format "%:y-%02m-%02d %02H:%02M:%02S %Z")
:hook
(before-save . time-stamp))
;;;;;;;;;;;;;;;;;;;; File formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package adoc-mode
:mode (("\\.adoc" . adoc-mode)))

View File

@ -1,2 +1,2 @@
127.0.0.1:51313 4627
127.0.0.1:51313 17682
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh