which-key, git, and shell get own sections, improve descriptions

This commit is contained in:
Łukasz Pankowski 2019-12-15 19:23:50 +01:00
parent 8411e001bf
commit cc78bafa5b
2 changed files with 27 additions and 14 deletions

39
init.el
View File

@ -97,6 +97,16 @@
;;; ------------ ;;; ------------
;;; ### Key discoverability ###
;;; If you type a prefix key (such as `C-x r`) and wait some time then
;;; display window with keys that can follow.
(use-package which-key
:config
(which-key-mode))
;;; ### More efficient buffer/file selection ### ;;; ### More efficient buffer/file selection ###
(use-package helm (use-package helm
@ -224,19 +234,15 @@
;;; ### In buffer movement enhancements ### ;;; ### In buffer movement enhancements ###
;;; Remind of keys than can follow in a key sequence ;;; Type substring and wait to select one of its visible occurrences
;;; (even in other windows) with a single or two letters.
(use-package which-key
:config
(which-key-mode))
;;; Type prefix and wait to select one of the with a single or two letters
(use-package avy (use-package avy
:bind :bind
("s-;" . avy-goto-char-timer)) ("s-;" . avy-goto-char-timer))
;;; Bind key `o` to selection of links by a single or two letters ;;; Bind key `o` to selection of a link in help or info buffers by a
;;; single or two letters.
(use-package ace-link (use-package ace-link
:config :config
@ -248,7 +254,7 @@
:bind :bind
("C-c '" . avy-flycheck-goto-error)) ("C-c '" . avy-flycheck-goto-error))
;;; Go to last change in the buffer ;;; Go to last change in the current buffer
(use-package goto-chg (use-package goto-chg
:bind :bind
@ -296,6 +302,9 @@
(global-set-key "\C-ck" #'compile) (global-set-key "\C-ck" #'compile)
(global-set-key "\C-cq" #'bury-buffer) (global-set-key "\C-cq" #'bury-buffer)
;;; ### Shell and terminal ###
(use-package shell-pop (use-package shell-pop
:init :init
(setq shell-pop-full-span t) (setq shell-pop-full-span t)
@ -305,6 +314,9 @@
:bind (("C-c z" . helm-mt)) :bind (("C-c z" . helm-mt))
:hook (term-exec . toggle-truncate-lines)) :hook (term-exec . toggle-truncate-lines))
;;; ### Git ###
(use-package magit (use-package magit
:bind ("C-c m" . magit-status)) :bind ("C-c m" . magit-status))
@ -317,7 +329,8 @@
;;; ### 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 ;;; Bind keys from `s-s a` to `s-s z` to switch to buffers from a
;;; register from `a` to `z`.
(defalias 'pr #'point-to-register) (defalias 'pr #'point-to-register)
@ -438,7 +451,7 @@ of the key binding used to execute this command."
;;; Now: ;;; Now:
;;; 1. Install [clang](http://clang.llvm.org/) compiler or more accurately ;;; 1. Install [clang](http://clang.llvm.org/) compiler or more accurately
;;; `libclang` library (package `libclang-dev` or may be newer ;;; `libclang` development package (package `libclang-dev` or may be newer
;;; `libclang-X-dev` under Debian) which is required by `rtags`. ;;; `libclang-X-dev` under Debian) which is required by `rtags`.
;;; 2. Under Emacs having `rtags` package installed press `M-:` and ;;; 2. Under Emacs having `rtags` package installed press `M-:` and
@ -621,7 +634,7 @@ inserted between the braces between the braces."
;;; see [Getting started](https://golang.org/doc/install). ;;; see [Getting started](https://golang.org/doc/install).
;;; 3. Install [gopls](https://github.com/golang/go/wiki/gopls) with ;;; 3. Install [gopls](https://github.com/golang/go/wiki/gopls) with
;;; (in your home directory, not inside some Go module) ;;; (but in your home directory, not inside some Go module)
;;; ``` ;;; ```
;;; $ GO111MODULE=on go get golang.org/x/tools/cmd/gopls@latest ;;; $ GO111MODULE=on go get golang.org/x/tools/cmd/gopls@latest
@ -774,7 +787,7 @@ inserted between the braces between the braces."
;;; ### Dart ### ;;; ### Dart ###
;;; NOTE: `pub` and `dart` must be in PATH for lsp to start in ;;; NOTE: `pub` and `dart` must be in `PATH` for lsp to start in
;;; dart-mode. ;;; dart-mode.
;;; For **tab completion** and **lsp** support also add [my common ;;; For **tab completion** and **lsp** support also add [my common

View File

@ -125,7 +125,7 @@ inserted between the braces between the braces."
;;; (but in Debian 10 Buster it is 1.11 compared to the current 1.13, ;;; (but in Debian 10 Buster it is 1.11 compared to the current 1.13,
;;; so you may consider ;;; so you may consider
;;; [downloading the current version of Go](https://golang.org/dl/)). Otherwise ;;; [downloading the current version of Go](https://golang.org/dl/)). Otherwise
;;; search for the package for your system or otherwise ;;; search for the package for your system or
;;; see [Getting started](https://golang.org/doc/install). ;;; see [Getting started](https://golang.org/doc/install).
;;; 3. Install [godef](https://godoc.org/github.com/rogpeppe/godef) ;;; 3. Install [godef](https://godoc.org/github.com/rogpeppe/godef)