From e5c8683d1f591498f69a60feaf7ccb08583b833c Mon Sep 17 00:00:00 2001 From: Dibyashanu Pati <> Date: Sun, 2 Mar 2025 15:14:30 +0530 Subject: [PATCH] more emacs packages --- AVY.org | 4 ++-- My_Emacs_Config.org | 4 +++- beacon.org | 14 ++++++++++++++ company.org | 37 +++++++++++++++++++++++++++++++++++++ 4 files changed, 56 insertions(+), 3 deletions(-) create mode 100644 beacon.org create mode 100644 company.org diff --git a/AVY.org b/AVY.org index 95a65e0..f2c6fa4 100644 --- a/AVY.org +++ b/AVY.org @@ -3,7 +3,7 @@ :END: #+title: AVY - [[https://github.com/abo-abo/avy][AVY]] is a powerful Emacs library that allows you to jump to any visible character in a buffer with efficient tree searches. + [[https://github.com/abo-abo/avy][AVY]] is a powerful [[id:0a87430b-6616-4f92-8ecc-22ceeebf43c6][Emacs]] library that allows you to jump to any visible character in a buffer with efficient tree searches. The core idea that makes Avy a powerful tool is [[id:65391d4b-e2b4-4a71-9d98-100cbc9772b4][the filter - select - act paradigm]]. @@ -24,7 +24,7 @@ Usage :* :config ;; the time in seconds after which the decision tree appears when you stop typing - (setq avy-timeout-seconds 0.3) + (setq avy-timeout-seconds 0.4) ;; Bind avy-goto-char-timer to SPC a using General (leader-keys diff --git a/My_Emacs_Config.org b/My_Emacs_Config.org index ea11b71..0c448cc 100644 --- a/My_Emacs_Config.org +++ b/My_Emacs_Config.org @@ -7,6 +7,8 @@ Here is my emacs config with commentary. TODO This is a work in progress - I am adding packages one by one after cleaning some of the code and fixing bugs -* [[id:d9246843-e229-4f53-b75d-0cac546f353b][AVY]] * [[id:fd5aaf93-1573-491a-baad-4ea3b08ae2ef][GENERAL]] * [[id:3b7e762e-cb8c-4d89-9147-6a50f921e9d3][EVIL]] +* [[id:d9246843-e229-4f53-b75d-0cac546f353b][AVY]] +* [[id:7ddf5b51-edfe-4a05-a971-79c33153fc96][BEACON]] +* [[id:9478bca4-eee1-4aaa-b3cf-03f3148e2009][COMPANY]] diff --git a/beacon.org b/beacon.org new file mode 100644 index 0000000..778d323 --- /dev/null +++ b/beacon.org @@ -0,0 +1,14 @@ +:PROPERTIES: +:ID: 7ddf5b51-edfe-4a05-a971-79c33153fc96 +:END: +#+title: BEACON + +[[https://github.com/Malabarba/beacon][Beacon]] is an [[id:0a87430b-6616-4f92-8ecc-22ceeebf43c6][Emacs]] package, which makes a visual change when the cursor is moved from one window to another, hence making it unlikely for you to loose your cursor. Trust me it is surprisingly useful. + +#+begin_src elisp +(use-package beacon + :config + (beacon-mode 1) +) +#+end_src + diff --git a/company.org b/company.org new file mode 100644 index 0000000..6a53f0f --- /dev/null +++ b/company.org @@ -0,0 +1,37 @@ +:PROPERTIES: +:ID: 9478bca4-eee1-4aaa-b3cf-03f3148e2009 +:END: +#+title: COMPANY + +[[https://company-mode.github.io/][Company]] is a text completion framework for [[id:0a87430b-6616-4f92-8ecc-22ceeebf43c6][Emacs]] . The name stands for "complete anything". It is nice. + +#+begin_src elisp +(use-package company + :config + ;; No delay in showing suggestions. + (setq company-idle-delay 0) + ;; Show suggestions after entering one character. + (setq company-minimum-prefix-length 1) + ;; Wrap around the when the end of suggestions is reached + (setq company-selection-wrap-around t) + + (add-hook 'after-init-hook 'global-company-mode) + (global-company-mode t) +) + +#+end_src + + +I also use [[https://github.com/sebastiencs/company-box][company-box]] a better front-end for company +#+begin_src elisp +(use-package company-box + :after company + :hook (company-mode . company-box-mode)) +#+end_src + +** References ++ https://www.monolune.com/articles/configuring-company-mode-in-emacs/index.html ++ https://company-mode.github.io/ ++ https://company-mode.github.io/manual/Getting-Started.html ++ https://github.com/sebastiencs/company-box +