GNU-devel ELPA - logos

logos

Description
Simple focus mode and extras
Latest
logos-1.1.1.0.20240224.55443.tar (.sig), 2024-Feb-24, 150 KiB
Maintainer
Protesilaos Stavrou <info@protesilaos.com>
Website
https://github.com/protesilaos/logos
Browse ELPA's repository
CGit or Gitweb
Badge
Manual
logos

To install this package from Emacs, use package-install or list-packages.

Full description

Logos (logos.el)

This package provides a simple approach to setting up a "focus mode" for Emacs. It uses the page-delimiter (typically the ^L character) or the outline-regexp together with some commands to move between pages whether narrowing is in effect or not. It also provides some optional stylistic tweaks which come into effect when the buffer-local logos-focus-mode is enabled. The manual shows how to extend the code to achieve the desired result.

Old versions

logos-1.1.1.0.20240117.25050.tar.lz2024-Jan-1729.9 KiB
logos-1.1.1.0.20240112.62858.tar.lz2024-Jan-1229.9 KiB
logos-1.1.1.0.20231124.52443.tar.lz2023-Nov-2429.9 KiB
logos-1.1.0.0.20230620.122728.tar.lz2023-Jun-2029.7 KiB
logos-1.0.1.0.20230326.52119.tar.lz2023-Mar-2631.0 KiB
logos-1.0.1.0.20221019.13821.tar.lz2022-Oct-1930.7 KiB
logos-0.5.1.0.20220920.24640.tar.lz2022-Sep-2029.9 KiB
logos-0.4.0.0.20220821.145334.tar.lz2022-Aug-2128.5 KiB
logos-0.3.2.0.20220602.31635.tar.lz2022-Jun-0218.4 KiB
logos-0.1.2.0.20220317.60600.tar.lz2022-Mar-1715.8 KiB

News

The newest release is at the top. For further details, please consult the manual: https://protesilaos.com/emacs/logos.

Version 1.1.0 on 2023-06-20

The logos-focus-mode-extra-functions has a new name

It is now called logos-focus-mode-hook to conform with the conventions surrounding Emacs Lisp packaging. The old name is deprecated and will be removed in the future. The relevant warnings are in place to inform users of the change.

The logos-focus-mode-extra-functions had the unfortunate connotation of being an irregular hook, i.e. one that runs with arguments. Whereas this one is a regular hook that passes no arguments to the functions it calls. Quoting from the Emacs Lisp Reference Manual:

If the hook variable’s name does not end with ‘-hook’, that indicates it is probably an “abnormal hook”. These differ from normal hooks in two ways: they can be called with one or more arguments, and their return values can be used in some way. The hook’s documentation says how the functions are called and how their return values are used. Any functions added to an abnormal hook must follow the hook’s calling convention. By convention, abnormal hook names end in ‘-functions’.

To read the manual, evaluate this inside of Emacs:

(info "(elisp) Hooks")

The logos-page-delimiter variable/function is now public

Renaming the logos-page-delimiter function and variable is necessary as both can safely be included in user-defined code.

In the context of Elisp packaging, a "private" symbol is denoted by a double dash in its name. Such code is intended for internal use: it may be redefined or altogether removed without further notice. Whereas a "public" symbol comes with the implicit guarantee that the developer will take good care to preserve its behaviour and/or document any breaking changes.

Functions that set state have a more descriptive name

This concerns logos--mode, hereby renamed to logos-set-mode-arg, and logos--set, which is now called logos-set-buffer-local-value.

The intent is to make the code public as well as to better describe what it does already at the naming level.

As always, the relevant arrangements are in place to notify users of the change.

The Git repository also includes a README.md

The project has a README.org file which contains the project's documentation and is exported to the Info page format. A new README.md is supplied as well to provide the basics of what logos is, link to its video demo, and further resources.

Thanks to Dave Abrahams for asking me to put a video demo in the README. This inspired me to update this repository to be in the style of the others I also maintain. Dave's comment was made in issue 12 on the GitHub mirror: https://github.com/protesilaos/logos/issues/12.

Version 1.0.0 on 2022-10-19

  • Revised the fallback condition of the user option logos-outline-regexp-alist (it comes into effect when the logos-outlines-are-pages is non-nil).

    The previous value did not account for the buffer-local values of outline-regexp or page-delimiter, nor did it adapt to any changes in their respective values. Instead, it would capture whatever the value was at the time of the symbol's declaration.

    We remove the t condition altogether and instead handle the fallback value internally. Logos will return the current

… …