Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karimaziev/long-line
Show or hide fill collumn indicator.
https://github.com/karimaziev/long-line
emacs indentation
Last synced: 4 days ago
JSON representation
Show or hide fill collumn indicator.
- Host: GitHub
- URL: https://github.com/karimaziev/long-line
- Owner: KarimAziev
- License: gpl-3.0
- Created: 2022-04-30T11:29:38.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-09T12:19:56.000Z (5 days ago)
- Last Synced: 2024-11-09T13:23:35.955Z (5 days ago)
- Topics: emacs, indentation
- Language: Emacs Lisp
- Homepage:
- Size: 49.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* long-line
An Emacs minor mode which show or hide indicator depending whether the buffer contain lines longer then value of ~fill-column~.
** Requirements
- Emacs Emacs 27.1
** Installation
*** with straight-use-package
Put the following in your init file:
#+begin_src elisp
(use-package long-line
:bind ("C-c ." . long-line-transient)
:straight (long-line
:type git
:host github
:repo "KarimAziev/long-line")
:hook
((emacs-lisp-mode . long-line-mode)))
#+end_src*** Manual
Or download repository and add it to your ~load-path~.
#+begin_src elisp
(add-to-list 'load-path "/path/to/long-line/")(require 'long-line)
(add-hook 'emacs-lisp-mode-hook 'long-line-mode)
#+end_src*** ~long-line-mode~
Show or hide fill column indicator after save. If buffer contain lines longer then the value of the variable =fill-column= show it, else hide.
** Transient*** ~long-line-transient~
Command dispatcher for =long-line-mode=.
** Commands*** ~long-line-show-or-hide-indicator~
Show or hide fill column indicator in current buffer. If buffer contain lines longer then the value of the variable =fill-column= show it, else hide.
*** ~long-line-transient-set-fill-column~
Interactivelly set fill column.
*** ~long-line-next-long-line~ (&optional arg)
Move to the ARGth next long line greater than =fill-column=.
*** ~long-line-prev-long-line~
Move to the previous long line greater than =fill-column=.
*** ~long-line-next-or-prev-long~
Move to the next or previous long line greater than =fill-column=.
*** ~long-line-prev-or-next-long~
Move to the previous or next long line greater than =fill-column=.
** Customization*** ~long-line-highlight-line-p~
Whether to highlight long line after =long-line-next-long-line=.
*** ~long-line-message-function~
Function to show messages. Should accept the same arguments as =message=.