From 6cbf405580bf07b00dd49ccc6647c1bb403b3859 Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 16 Oct 2024 14:21:06 +0200 Subject: [PATCH 1/2] dev: Configure company mode keybindings Disable the default `company-complete-selection` keybinding which was just return to still be able to enter a newline and use "M-RET" instead. --- .emacs.d/config/dev.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index a46ea30..7507333 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -49,3 +49,10 @@ :config (setq lsp-ui-doc-position 'at-point) (setq lsp-ui-doc-show-with-mouse nil)) + +(use-package company + :ensure t + :bind (:map company-active-map + ("RET" . nil) + ("" . nil) + ("M-RET" . company-complete-selection))) From 853c462c330cb1cbae4cb73ce169abb62fe1a1ef Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 16 Oct 2024 14:25:57 +0200 Subject: [PATCH 2/2] git: Install the git-timemachine package --- .emacs.d/config/git.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.emacs.d/config/git.el b/.emacs.d/config/git.el index 050e1bb..12ca787 100644 --- a/.emacs.d/config/git.el +++ b/.emacs.d/config/git.el @@ -15,3 +15,6 @@ :config ;; Turn on flyspell when writing commit messages (add-hook 'git-commit-setup-hook 'git-commit-turn-on-flyspell)) + +(use-package git-timemachine + :ensure t)