Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karimaziev/km-edit
Misc editing utils for Emacs.
https://github.com/karimaziev/km-edit
Last synced: 4 days ago
JSON representation
Misc editing utils for Emacs.
- Host: GitHub
- URL: https://github.com/karimaziev/km-edit
- Owner: KarimAziev
- License: gpl-3.0
- Created: 2023-03-11T10:43:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-09T12:21:33.000Z (5 days ago)
- Last Synced: 2024-11-09T13:24:08.551Z (5 days ago)
- Language: Emacs Lisp
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* km-edit
Miscellaneous editing utils for Emacs.
** Installation
*** Manual
Download the source code and put it wherever you like, e.g. into =~/.emacs.d/km-edit/=
#+begin_src shell :eval no
git clone https://github.com/KarimAziev/km-edit.git ~/.emacs.d/km-edit/
#+end_srcAdd the downloaded directory to the load path:
#+begin_src elisp :eval no
(add-to-list 'load-path "~/.emacs.d/km-edit/")
(require 'km-edit)
#+end_src#+begin_src elisp :eval no
(use-package km-edit
:straight (km-edit
:repo "KarimAziev/km-edit"
:type git
:host github)
:bind (("C-c TAB" . km-edit-indent-buffer-or-region)
("M-D" . km-edit-delete-line)
("C-c C-k" . km-edit-dwim-insert-key-description)
("C-a" . km-edit-smart-beginning-of-line)
("C-M-y" . km-edit-yank-pop-forwards)
("C-'" . km-edit-quote-or-unquote-at-point)))
#+end_src** Commands
*** ~km-edit-recode-region~ (beg end)
Try all possible character encodings to re-decode region between =beg= and =end=. Show results in minibuffer completions and finally recode the region with selected one.
*** ~km-edit-copy-prin1-to-string-no-newlines~
Return a string with the printed representation of region without new lines.
*** ~km-edit-copy-prin1-to-string-at-point~
Return a string with the printed representation of active region or sexp.
*** ~km-edit-copy-sexp-or-region-at-point~
Copy region or sexp at point.
*** ~km-edit-dwim-insert-key-description~
Read and insert a description of keystrokes. Inside string also remove old content. If parent form is a symbol listed in =km-edit-dwim-kbd-forms= and point is not inside string, insert either vector or kbd call. In other cases insert string.
*** ~km-edit-quote-or-unquote-at-point~
Add or remove string quotes for thing at point.
*** ~km-edit-smart-beginning-of-line~
Move point to first non-whitespace character or beginning-of-line.
*** ~km-edit-recode-buffer-or-region~ (coding-system)
Encode and decode active region or whole buffer content to =coding-system=.
*** ~km-edit-delete-line~
Remove line without putting to kill ring.
*** ~km-edit-yank-pop-forwards~ (arg)
Call =yank-pop= with =arg= if the previous command was yank.
*** ~km-edit-indent-buffer-or-region~
Indent active region or the entire buffer.