Re-ordered some blocks.
This commit is contained in:
parent
379eb6c93f
commit
f4e4075e29
73
init.el
73
init.el
|
@ -1,5 +1,5 @@
|
||||||
;;; init.el --- tastytea's Emacs init file.
|
;;; 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:
|
;;; Commentary:
|
||||||
;;; I am using this file with Emacs 26, but most of it will probably work with
|
;;; I am using this file with Emacs 26, but most of it will probably work with
|
||||||
|
@ -84,9 +84,6 @@
|
||||||
;; Save minibuffer history
|
;; Save minibuffer history
|
||||||
(savehist-mode t)
|
(savehist-mode t)
|
||||||
|
|
||||||
;; Show column numbers in modeline
|
|
||||||
(column-number-mode t)
|
|
||||||
|
|
||||||
;; Save backups in ~/.emacs.d/ and keep more versions
|
;; Save backups in ~/.emacs.d/ and keep more versions
|
||||||
(setq backup-directory-alist
|
(setq backup-directory-alist
|
||||||
`(("." . ,(concat user-emacs-directory "backups"))))
|
`(("." . ,(concat user-emacs-directory "backups"))))
|
||||||
|
@ -128,29 +125,6 @@
|
||||||
:config
|
:config
|
||||||
(smooth-scrolling-mode 1))
|
(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.
|
;; Paste text where the cursor is, not where the mouse is.
|
||||||
(setq mouse-yank-at-point t)
|
(setq mouse-yank-at-point t)
|
||||||
|
|
||||||
|
@ -166,7 +140,7 @@
|
||||||
(global-set-key (kbd "M-<down>") 'scroll-up-line)
|
(global-set-key (kbd "M-<down>") 'scroll-up-line)
|
||||||
(global-set-key (kbd "M-<up>") 'scroll-down-line)
|
(global-set-key (kbd "M-<up>") 'scroll-down-line)
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;; Programming / RTags ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Programming / C++ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(use-package rtags
|
(use-package rtags
|
||||||
:unless slow-computer
|
:unless slow-computer
|
||||||
:if (executable-find "llvm-config")
|
:if (executable-find "llvm-config")
|
||||||
|
@ -207,6 +181,13 @@
|
||||||
(setq rtags-completions-enabled t)
|
(setq rtags-completions-enabled t)
|
||||||
(push 'company-rtags company-backends))
|
(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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; Programming / other ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Online documentation mode
|
;; Online documentation mode
|
||||||
(use-package eldoc
|
(use-package eldoc
|
||||||
|
@ -231,13 +212,6 @@
|
||||||
:config
|
:config
|
||||||
(company-flx-mode +1))
|
(company-flx-mode +1))
|
||||||
|
|
||||||
;; cmake integration
|
|
||||||
(use-package cmake-ide
|
|
||||||
:unless slow-computer
|
|
||||||
:config
|
|
||||||
(setq cmake-ide-build-dir "build")
|
|
||||||
(cmake-ide-setup))
|
|
||||||
|
|
||||||
;; Indentation
|
;; Indentation
|
||||||
(setq-default indent-tabs-mode nil
|
(setq-default indent-tabs-mode nil
|
||||||
tab-width 4)
|
tab-width 4)
|
||||||
|
@ -265,8 +239,7 @@
|
||||||
:bind
|
:bind
|
||||||
("C-c p" . 'projectile-command-map)
|
("C-c p" . 'projectile-command-map)
|
||||||
(:map projectile-command-map
|
(:map projectile-command-map
|
||||||
("k" . 'projectile-kill-buffers-and-change-tabbar-grouping))
|
("k" . 'projectile-kill-buffers-and-change-tabbar-grouping)))
|
||||||
)
|
|
||||||
|
|
||||||
;; Debugger
|
;; Debugger
|
||||||
(use-package realgud
|
(use-package realgud
|
||||||
|
@ -338,6 +311,9 @@
|
||||||
;; Modeline
|
;; Modeline
|
||||||
(use-package doom-modeline
|
(use-package doom-modeline
|
||||||
:after all-the-icons
|
:after all-the-icons
|
||||||
|
:init
|
||||||
|
;; Show column numbers in modeline
|
||||||
|
(column-number-mode t)
|
||||||
:config
|
:config
|
||||||
(setq doom-modeline-minor-modes t)
|
(setq doom-modeline-minor-modes t)
|
||||||
:hook (after-init . doom-modeline-mode))
|
:hook (after-init . doom-modeline-mode))
|
||||||
|
@ -526,6 +502,29 @@
|
||||||
(uniquify-buffer-name-style 'post-forward)
|
(uniquify-buffer-name-style 'post-forward)
|
||||||
(uniquify-strip-common-suffix t))
|
(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 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;; File formats ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
(use-package adoc-mode
|
(use-package adoc-mode
|
||||||
:mode (("\\.adoc" . adoc-mode)))
|
:mode (("\\.adoc" . adoc-mode)))
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
127.0.0.1:51313 4627
|
127.0.0.1:51313 17682
|
||||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user