From b226acf1069fa0d7dc07534d6231e62eb17acd67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Sat, 30 Nov 2019 19:22:35 +0100 Subject: [PATCH] lower level of each heading so that first level is for the title --- init.el | 122 +++++++++++++++++------------------------------------- old-go.el | 3 +- 2 files changed, 38 insertions(+), 87 deletions(-) diff --git a/init.el b/init.el index 20a348f..16e2af0 100644 --- a/init.el +++ b/init.el @@ -15,11 +15,10 @@ ;;; Basic settings -;;; ============== +;;; -------------- -;;; Directory with local Emacs lisp files -;;; ------------------------------------- +;;; ### Directory with local Emacs lisp files ### ;;; I add a directory to the lisp search path where I can add my own ;;; lisp code and (now less often) downloaded lisp code which is not @@ -32,8 +31,7 @@ (add-to-list 'load-path path t))) -;;; Add MELPA package list -;;; ---------------------- +;;; ### Add MELPA package list ### ;;; You can install many Emacs packages from [MELPA](https://melpa.org) ;;; repository. To add MELPA to the package list add the following to your @@ -70,14 +68,12 @@ ;;; `use-package` to work. -;;; Other settings -;;; -------------- +;;; ### Other settings ### (setq recentf-max-saved-items 100) -;;; Workaround for security vulnerability in Emacs >= 21.1 and < 25.3 -;;; ----------------------------------------------------------------- +;;; ### Workaround for security vulnerability in Emacs >= 21.1 and < 25.3 ### ;;; ;;; See [Changes in Emacs 25.3](https://www.gnu.org/software/emacs/news/NEWS.25.3) @@ -87,12 +83,10 @@ ;;; Productivity -;;; ============ +;;; ------------ -;;; More efficient buffer/file selection -;;; ------------------------------------ - +;;; ### More efficient buffer/file selection ### (use-package helm :init @@ -176,8 +170,7 @@ ("C-c d" . my-lcd))) -;;; Window selection enhancements -;;; ----------------------------- +;;; ### Window selection enhancements ### (use-package ace-window @@ -203,9 +196,7 @@ (winner-mode 1) -;;; In buffer movement enhancements -;;; ------------------------------- - +;;; ### In buffer movement enhancements ### ;;; Remind of keys than can follow in a key sequence @@ -238,9 +229,7 @@ ("C-c G" . goto-last-change)) -;;; Editing enhancements -;;; --------------------- - +;;; ### Editing enhancements ### ;;; Context aware insertion of pairs of parenthesis @@ -262,9 +251,7 @@ (add-hook 'prog-mode-hook #'ws-butler-mode)) -;;; Convenience functions, aliases, and key bindings -;;; ------------------------------------------------ - +;;; ### Convenience functions, aliases, and key bindings ### ;; Convenience functions and aliases @@ -305,9 +292,7 @@ git-messenger:use-magit-popup t)) -;;; Switching buffers -;;; ----------------- - +;;; ### Switching buffers ### ;;; Set keys from `s-s a` to `s-s z` to switch to buffers from a register from a to z @@ -336,11 +321,10 @@ of the key binding used to execute this command." ;;; Programming languages -;;; ===================== +;;; --------------------- -;;; C and C++ -;;; --------- +;;; ### C and C++ ### ;;; The following Emacs packages [from MELPA](#add-melpa-package-list) ;;; need to be installed: [cmake-ide](https://melpa.org/#/cmake-ide), @@ -419,9 +403,7 @@ of the key binding used to execute this command." ;;; | `C-c r ;` | `rtags-find-file` (in the current project no metter in which directory) -;;; Lisp and Emacs lisp -;;; ------------------- - +;;; ### Lisp and Emacs lisp ### ;; in emacs 25.1: M-. runs xref-find-definitions, M-, jumps back (global-set-key (kbd "C-c e l") #'find-library) @@ -473,15 +455,12 @@ of the key binding used to execute this command." (add-hook 'lisp-mode-hook #'my-lisp-mode-hook-fn) -;;; JavaScript -;;; ---------- - +;;; ### JavaScript ### (setq js-indent-level 8) -;;; Go -;;; -- +;;; ### Go ### ;;;
;;; This is my new Go setup (partially) based on ;;; This is my old Go setup, you may try the new setup