abougouffa / guard-lf

Guard large files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

License: GPL v3 JCS-ELPA

guard-lf

Guard large files

CI

This is an alternative to Emacs built-in so-long.

The so-long package will first enter the major mode and then disable all minor modes of your choice. But sometimes, the file is too large, and you cannot even exit the event loop. This package takes another approach. It prevents you from entering major mode and simply directs you to the mode configured in guard-lf-major-mode (by default, this is set to guard-lf-major-mode which is basically the same as fundamental-mode).

🔨 Usage

Place the following snippet to your init.el file:

(guard-lf-mode 1)

🔧 Customization

🧪 Variables

  • guard-lf-major-mode - Major mode to use when viewing large file. (Default: guard-lf-large-file-mode)
  • guard-lf-intact-major-modes - Do nothing for these major modes.

🛠️ Contribute

PRs Welcome Elisp styleguide Donate on paypal Become a patron

If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!

🔬 Development

To run the test locally, you will need the following tools:

Install all dependencies and development dependencies:

$ eask install-deps --dev

To test the package's installation:

$ eask package
$ eask install

To test compilation:

$ eask compile

🪧 The following steps are optional, but we recommend you follow these lint results!

The built-in checkdoc linter:

$ eask lint checkdoc

The standard package linter:

$ eask lint package

📝 P.S. For more information, find the Eask manual at https://emacs-eask.github.io/.

⚜️ License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

See LICENSE for details.

About

Guard large files

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 88.7%Language:Makefile 11.3%