Many small changes in init.el.
Enhanced auto-insert snippets, fixed keybindings, fixed configure command, disabled highlight-indent-guides, added highlight-doxygen, changed comment color, tidied modeline, tweaked tabbar.
This commit is contained in:
parent
fbae6ab684
commit
ba0a5486d8
|
@ -1,4 +1,4 @@
|
|||
/* This file is part of [NAME OF PROGRAM].
|
||||
/* This file is part of `(projectile-project-name)`.
|
||||
* Copyright © `(format-time-string "%Y")` `user-full-name` <`user-mail-address`>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/* This file is part of `(projectile-project-name)`.
|
||||
* Copyright © `(format-time-string "%Y")` `user-full-name` <`user-mail-address`>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, version 3.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_`(upcase (file-name-extension (buffer-file-name)))`}
|
||||
#define $1
|
||||
|
||||
|
|
60
init.el
60
init.el
|
@ -1,5 +1,5 @@
|
|||
;;; init.el --- tastytea's Emacs init file.
|
||||
;;; Time-stamp: <2019-03-27 11:16:38 CET>
|
||||
;;; Time-stamp: <2019-03-28 21:21:09 CET>
|
||||
|
||||
;;; Commentary:
|
||||
;;; I am using this file with Emacs 26, but most of it will probably work with
|
||||
|
@ -129,11 +129,11 @@
|
|||
;; ;; Never recenter cursor while scrolling.
|
||||
;; (setq scroll-conservatively 101)
|
||||
|
||||
;; Scroll before cursor has reached top/bottom.
|
||||
;; Way too slow with fci-mode and highlight-indent-guides activated.
|
||||
(use-package smooth-scrolling
|
||||
:config
|
||||
(smooth-scrolling-mode 1))
|
||||
;; ;; Scroll before cursor has reached top/bottom.
|
||||
;; ;; Way too slow with fci-mode and highlight-indent-guides activated.
|
||||
;; (use-package smooth-scrolling
|
||||
;; :config
|
||||
;; (smooth-scrolling-mode 1))
|
||||
|
||||
;; Paste text where the cursor is, not where the mouse is.
|
||||
(setq mouse-yank-at-point t)
|
||||
|
@ -146,13 +146,13 @@
|
|||
(use-package bind-key
|
||||
:config
|
||||
(bind-keys
|
||||
;; Scroll in other window.
|
||||
("S-<prior>" . scroll-other-window-down)
|
||||
("S-<next>" . scroll-other-window)
|
||||
;; ;; Scroll in other window.
|
||||
;; ("S-<prior>" . scroll-other-window-down)
|
||||
;; ("S-<next>" . scroll-other-window)
|
||||
;; Switch window
|
||||
("C-<tab>" . other-window)
|
||||
;; Reduce whitespace around cursor to 0 or 1, according to context.
|
||||
("C-<delete>" . fixup-whitespace)
|
||||
("C-S-<delete>" . fixup-whitespace)
|
||||
;; Scroll without moving the cursor.
|
||||
("M-<down>" . scroll-up-line)
|
||||
("M-<up>" . scroll-down-line)))
|
||||
|
@ -247,9 +247,9 @@
|
|||
(setq projectile-switch-project-action 'neotree-projectile-action
|
||||
projectile-project-compilation-dir "build"
|
||||
projectile-project-configure-cmd
|
||||
"cmake -DCMAKE_BUILD_TYPE=Debug
|
||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' .."
|
||||
projectile-project-compilation-cmd "cmake --build .")
|
||||
"cmake -DCMAKE_BUILD_TYPE=Debug \
|
||||
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' .."
|
||||
projectile-project-compilation-cmd "LC_ALL=C cmake --build .")
|
||||
|
||||
(defun my/projectile-kill-buffers-and-change-tabbar-grouping ()
|
||||
"Kill project buffers and change tabbar-ruler grouping to user-buffers."
|
||||
|
@ -297,13 +297,13 @@
|
|||
:hook
|
||||
(prog-mode . hs-minor-mode))
|
||||
|
||||
;; Highlight indentation levels.
|
||||
(use-package highlight-indent-guides
|
||||
:custom
|
||||
(highlight-indent-guides-method 'character)
|
||||
(highlight-indent-guides-responsive 'top)
|
||||
:hook
|
||||
(prog-mode . highlight-indent-guides-mode))
|
||||
;; ;; Highlight indentation levels.
|
||||
;; (use-package highlight-indent-guides
|
||||
;; :custom
|
||||
;; (highlight-indent-guides-method 'character)
|
||||
;; (highlight-indent-guides-responsive 'top)
|
||||
;; :hook
|
||||
;; (prog-mode . highlight-indent-guides-mode))
|
||||
|
||||
;; Tries to find structures and jumps to them.
|
||||
(use-package imenu-anywhere
|
||||
|
@ -311,6 +311,13 @@
|
|||
:bind
|
||||
("M-i" . imenu-anywhere))
|
||||
|
||||
(use-package highlight-doxygen
|
||||
:custom-face
|
||||
(highlight-doxygen-comment ((t (:inherit font-lock-comment-face :foreground "#667788"))))
|
||||
(highlight-doxygen-code-block ((t (:inherit highlight-doxygen-comment-face))))
|
||||
:hook
|
||||
(prog-mode . highlight-doxygen-mode))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;; Appearance ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Icons (required by doom).
|
||||
(use-package all-the-icons
|
||||
|
@ -324,6 +331,9 @@
|
|||
:after (all-the-icons neotree)
|
||||
:custom
|
||||
(doom-neotree-file-icons 'icons)
|
||||
:custom-face
|
||||
(font-lock-comment-face ((t (:inherit font-lock-comment-face :foreground "#667755"))))
|
||||
;; (font-lock-comment-face ((t (:inherit font-lock-comment-face :foreground "#555556"))))
|
||||
:config
|
||||
(load-theme 'doom-molokai t)
|
||||
(doom-themes-neotree-config)))
|
||||
|
@ -334,7 +344,9 @@
|
|||
:init
|
||||
(column-number-mode t) ; Show column numbers in modeline.
|
||||
:config
|
||||
(setq doom-modeline-minor-modes t)
|
||||
(setq doom-modeline-minor-modes t
|
||||
doom-modeline-buffer-file-name-style 'relative-to-project
|
||||
doom-modeline-minor-modes nil)
|
||||
:hook
|
||||
(after-init . doom-modeline-mode))
|
||||
|
||||
|
@ -459,6 +471,8 @@
|
|||
:foreground "dark gray"
|
||||
:family "Sans Serif"
|
||||
:italic t)
|
||||
(set-face-attribute 'tabbar-unselected-modified nil
|
||||
:bold nil)
|
||||
|
||||
(add-hook 'projectile-after-switch-project-hook ; Does not work under :hook.
|
||||
'tabbar-ruler-group-by-projectile-project)
|
||||
|
@ -476,7 +490,9 @@
|
|||
:background "gray18"
|
||||
:foreground "dark gray"
|
||||
:family "Sans Serif"
|
||||
:italic t))))
|
||||
:italic t))
|
||||
(tabbar-unselected-modified (nil
|
||||
:bold nil))))
|
||||
|
||||
;; Visualize whitespace.
|
||||
(use-package whitespace
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
127.0.0.1:51313 27494
|
||||
127.0.0.1:51313 12460
|
||||
phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh
|
Loading…
Reference in New Issue
Block a user