more emacs packages

This commit is contained in:
Dibyashanu Pati 2025-03-02 15:14:30 +05:30
parent 7d190ba093
commit e5c8683d1f
4 changed files with 56 additions and 3 deletions

View file

@ -3,7 +3,7 @@
:END: :END:
#+title: AVY #+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]]. 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 :config
;; the time in seconds after which the decision tree appears when you stop typing ;; 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 ;; Bind avy-goto-char-timer to SPC a using General
(leader-keys (leader-keys

View file

@ -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 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:fd5aaf93-1573-491a-baad-4ea3b08ae2ef][GENERAL]]
* [[id:3b7e762e-cb8c-4d89-9147-6a50f921e9d3][EVIL]] * [[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]]

14
beacon.org Normal file
View file

@ -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

37
company.org Normal file
View file

@ -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