Skip to content

Latest commit

 

History

History
1246 lines (740 loc) · 36.1 KB

DOCS.md

File metadata and controls

1246 lines (740 loc) · 36.1 KB

Emacs Logo

MinEmacs - a minimalist & lightweight Emacs configuration framework

Load and hooks order:

  • ~/.emacs.d/early-init.el
  • $MINEMACSDIR/early-config.el (unless disabled in $MINEMACS_IGNORE_USER_CONFIG)
  • $MINEMACSDIR/local/early-config.el (unless disabled)
  • ~/.emacs.d/init.el
    • before-init-hook
    • ~/.emacs.d/core/me-vars.el
    • ~/.emacs.d/core/me-loaddefs.el
    • $MINEMACSDIR/init-tweaks.el (unless disabled)
    • $MINEMACSDIR/local/init-tweaks.el (unless disabled)
    • $MINEMACSDIR/modules.el (unless disabled)
    • $MINEMACSDIR/local/modules.el (unless disabled)
    • ~/.emacs.d/core/<module>.el
    • ~/.emacs.d/modules/<module>.el (for module in minemacs-modules)
    • minemacs-after-loading-modules-hook
    • $MINEMACSDIR/custom-vars.el
    • $MINEMACSDIR/config.el (unless disabled)
    • $MINEMACSDIR/local/config.el (unless disabled)
    • after-init-hook
    • emacs-startup-hook
    • minemacs-after-startup-hook
      • minemacs-lazy-hook (delayed)

Special hooks defined with +make-first-file-hook!

  • minemacs-first-file-hook
  • minemacs-first-elisp-file-hook
  • minemacs-first-python-file-hook
  • minemacs-first-org-file-hook
  • minemacs-first-c/c++-file-hook

Customization Documentation

minemacs-msg-level

Level of printed messages. 1 - +error! 2 - +info! 3 - +log! 4 - +debug!

minemacs-theme

The theme of MinEmacs.

minemacs-disabled-packages

List of packages to be disabled when loading MinEmacs modules. This can be useful if you want to enable a module but you don't want a package of being enabled.

minemacs-after-loading-modules-hook

This hook will be run after loading MinEmacs modules. It is used internally to remove the +use-package--check-if-disabled:around-a advice we set on use-package in me-bootstrap.

minemacs-after-setup-fonts-hook

Runs after setting MinEmacs fonts, runs at the end of +setup-fonts.

minemacs-after-load-theme-hook

Runs after loading MinEmacs theme, runs at the end of +load-theme.

minemacs-after-startup-hook

This hook will be run after loading Emacs.

MinEmacs hooks will be run in this order:

  1. minemacs-after-startup-hook
  2. minemacs-lazy-hook

minemacs-lazy-hook

This hook will be run after loading Emacs, with laziness.

MinEmacs hooks will be run in this order:

  1. minemacs-after-startup-hook
  2. minemacs-lazy-hook

minemacs-proxies

MinEmacs proxies.

Example, set it to:

='(("no" . "localhost,127.0.0.1,.local,.mylocaltld") ("ftp" . "http://myproxy.local:8080/") ("http" . "http://myproxy.local:8080/") ("https" . "http://myproxy.local:8080/")))

These will set the environment variables "no_proxy", "ftp_proxy", ...

When set in "early-config.el" or in "init-tweaks.el", MinEmacs will enable it automatically.

+env-file

The file in which the environment variables will be saved.

+env-deny-vars

Environment variables to omit. Each string is a regexp, matched against variable names to omit from +env-file when saving evnironment variables in +env-save.

minemacs-on-demand-modules-alist

List of extra on-demand modules.

minemacs-on-demand-enable-auto-mode

Enable loading on-demand packages when needed based on :auto-mode.

minemacs-on-demand-enable-magic-mode

Enable loading on-demand packages when needed based on :magic-mode.

minemacs-on-demand-enable-interpreter-mode

Enable loading on-demand packages when needed based on :interpreter-mode.

minemacs-on-demand-enable-companion-packages

Enable loading on-demand companion packages when needed.

+eval-when-idle-delay

The default delay (in seconds) to consider in +eval-when-idle! macro.

+lazy-delay

The default delay (in seconds) to consider in +lazy! macro.

+first-file-hook-ignore-list

A list of files to ignore in the minemacs-first-*-file-hook.

+first-file-hooks

A list of defined hooks using +make-first-file-hook!.

+eglot-auto-enable-modes

Modes for which Eglot can be automatically enabled by +eglot-auto-enable.

+binary-hexl-enable

Enable or disable opening suitable files in hexl-mode.

+project-scan-dir-paths

A list of paths to scan and add to known projects list. It can be a list of strings (paths) or a list of (cons "~/path" recursive-p) to scan directories recursively.

+super-project-root-markers

List of super-project markers.

+serialized-symbols-directory

Default directory to store serialized symbols.

minemacs-fonts-plist

MinEmacs fonts used by +setup-fonts.

The function checks and enables the first available font from these defined in this plist. This variable can be customized to set font specs for specific Emacs faces or to enable some language-specific fonts. The plist keywords are either face names or script names expressed as keywords (with the ":" prefix).

For example to set default face, use :default, to set the mode-line face, use :mode-line, and so on. The parameters for each font in these cases (ie. for face names) are used in the custom-theme-set-faces function, so you can pass any specs (key value pairs) supported by custom-theme-set-faces (like :weight, :slant, :foreground, ...). A list of supported keywords are available in the variable +face-attributes.

You can also setup some language-specific fonts. All scripts supported by Emacs can be found in +known-scripts. The keyword in this plist will be the script name expressed as a keyword, for example, for latin use :latin, for arabic use :arabic, for emoji use :emoji, and so on. In this case, the parameters are used with set-fontset-font, so you can send any key value pair supported by set-fontset-font. A list of supported keywords in this case is available in +font-spec-keywords.

The value of the extra :prepend keyword is passed the last argument to set-fontset-font. The value of the extra :scale keyword can be used to set a scaling factor for the font in Emacs' face-font-rescale-alist. See the +setup-fonts implementation for more details.

+html2pdf-default-backend

The default backend to convert HTML files to PDFs in +html2pdf.

+html2pdf-backend-config-file

A config file to use with the backend tool (pandoc, weasyprint, ...).

+single-file-executable

The executable for "single-file" which is used archive HTML pages.

+serial-port

The default port (device) to use.

+serial-baudrate

The default baudrate to use.

+serial-first-commands

A list of commands to run in the serial terminal after creation.

+screenshot-delay

A delay to wait before taking the screenshot. Applicable only when calling +screenshot-svg with a prefix.

+kill-buffer-no-ask-list

A list of buffer names to be killed without confirmation.

+mpv-command

The MPV command.

eglot-ltex-user-rules-path

Path to save user rules.

+mu4e-account-aliases

Per-account alias list.

+mu4e-auto-bcc-address

Auto add this/these addresses as BCC.

+mu4e-gmail-accounts

Gmail accounts that do not contain "gmail" in address and maildir. An alist of Gmail addresses of the format (("[email protected]" . "account-maildir")) to which Gmail integrations (behind the +gmail flag of the mu4e module) should be applied. See +mu4e-msg-gmail-p and mu4e-sent-messages-behavior.

+org-responsive-image-percentage

Maximum image width as a percentage of the window width.

+org-responsive-image-width-limits

The minimum and maximum width of a displayed image.

+org-use-lower-case-keywords-and-properties

Automatically convert Org keywords and properties to lowercase on save.

+writing-mode-enable-hook

Execute hooks on enable.

+writing-mode-disable-hook

Execute hooks on disable.

+writing-text-scale

The text-scaling level for +writing-mode.

+writing-text-width

Like olivetti-body-width.

+writing-mixed-pitch-enable

Enable mixed-pitch-mode with +writing-mode for some modes defined in +writing-mixed-pitch-modes.

+writing-mixed-pitch-modes

Enable mixed-pitch-mode with +writing-mode for these modes.

+writing-major-modes

Enable +writing-global-mode for these exact modes.

+writing-derived-major-modes

Enable +writing-global-mode for modes derived these modes.

Function and Macro Documentation

(minemacs-generate-loaddefs)

Generate MinEmacs' loaddefs file.

(+load-user-configs &rest CONFIGS)

Load user configurations CONFIGS.

(+load &rest FILENAME-PARTS)

Load a file, the FILENAME-PARTS are concatenated to form the file name.

(+emacs-options-p &rest FEATS)

Is features FEATS are enabled in this Emacs build. When the first argument is :any, this returns t if at least one of the FEATS is available.

(+with-delayed! &rest BODY) (macro)

Delay evaluating BODY with priority 0 (high priority).

(+with-delayed-1! &rest BODY) (macro)

Delay evaluating BODY with priority 1.

(+varplist-get VPLIST KEYWORD &optional CAR-P)

Get KEYWORD's value from variable value length VPLIST. Ex: (+varplist-get '(:a 'a :b 'b1 'b2) :b) -> '(b1 b2).

(+plist-keys PLIST)

Return the keys of PLIST.

(+plist-push! PLIST &rest KEY-VALS) (macro)

Push KEY-VALS to PLIST.

(+plist-combine &rest PLISTS)

Create a single property list from all plists in PLISTS. Modified from org-combine-plists. This supposes the values to be vectors, and concatenate them.

(+plist-delete PLIST PROP)

Delete property PROP from PLIST. Adapted from org-plist-delete.

(+plist-to-alist PLIST &optional TRIM-COL)

Convert PLIST to an alist, trim first colon when TRIM-COL.

(+alist-to-plist ALIST &optional ADD-COL)

Convert ALIST to a plist, add colon to the keys when ADD-COL.

(+alist-set KEY VAL ALIST &optional SYMBOL)

Set property KEY to VAL in ALIST. Return new alist. This creates the association if it is missing, and otherwise sets the cdr of the first matching association in the list. It does not create duplicate associations. By default, key comparison is done with equal. However, if SYMBOL is non-nil, then eq is used instead. This method may mutate the original alist, but you still need to use the return value of this method instead of the original alist, to ensure correct results.

(+mode-alist-add-ts-modes! MODE-ALIST) (macro)

Duplicate elements in MODE-ALIST to include Treesit modes. For the alist =((some-mode . spec)), this will add =(some-ts-mode . spec).

(+set-standard-value VARIABLE VALUE)

Set the standard value of VARIABLE to VALUE.

(+standard-value VARIABLE)

Return the standard value for VARIABLE.

(+reset-standard-value VARIABLE)

Reset VARIABLE to its standard value.

(+unquote EXPR)

Return EXPR unquoted. This function does not change global state, including the match data.

(+quoted-p EXPR)

Return t when EXPR is quoted.

(+apply-partially-right FUN &rest ARGS)

Like apply-partially, but apply the ARGS to the right of FUN.

(+error! MSG &rest VARS) (macro)

Log error MSG and VARS using message.

(+info! MSG &rest VARS) (macro)

Log info MSG and VARS using message.

(+log! MSG &rest VARS) (macro)

Log MSG and VARS using message when minemacs-verbose-p is non-nil.

(+debug! MSG &rest VARS) (macro)

Log debug MSG and VARS using message when minemacs-msg-level is 4.

(+fn-inhibit-messages! FN &optional NO-MESSAGE-LOG) (macro)

Add an advice around the function FN to suppress messages in echo area. If NO-MESSAGE-LOG is non-nil, do not print any message to Messages buffer.

(+shutup! &rest BODY) (macro)

Suppress new messages temporarily while evaluating BODY. This inhebits both the echo area and the *Messages* buffer.

(+cmdfy! &rest BODY) (macro)

Convert BODY to an interactive command.

(+load-theme)

Load Emacs' theme from minemacs-theme.

(+eval-when-idle DELAY &rest FNS)

Queue FNS to be processed when Emacs becomes idle after DELAY seconds.

(+eval-when-idle! &rest BODY) (macro)

Evaluate BODY when Emacs becomes idle.

(+eval-when-idle-for! DELAY &rest BODY) (macro)

Evaluate BODY after DELAY seconds from Emacs becoming idle.

(+deferred! &rest BODY) (macro)

Run BODY after Emacs gets loaded, a.k.a. after minemacs-loaded.

(+lazy! &rest BODY) (macro)

Run BODY as a lazy block (see minemacs-lazy).

(+make-first-file-hook! FILETYPE EXT-REGEXP) (macro)

Make a hook which run on the first FILETYPE file of a particular extensions. The extension should matches EXT-REGEXP. This will creates a function named +first-file--FILETYPE-h which gets executed before after-find-file. This function will run on the first file that matches EXT-REGEXP. When it runs, this function provides a feature named minemacs-first-FILETYPE-file and a run all hooks in minemacs-first-FILETYPE-file-hook.

(+resolve-hook-forms HOOKS)

Convert a list of modes into a list of hook symbols. If a mode is quoted, it is left as is. If the entire HOOKS list is quoted, the list is returned as-is. This function does not change global state, including the match data.

(+setq-hook! HOOKS &rest [SYM VAL]...) (macro)

Set buffer-local variables on HOOKS. HOOKS can be expect receiving arguments (like in enable-theme-functions), the args variable can be used inside VAR-VALS forms to get the arguments passed the the function. (+setq-hook! 'enable-theme-functions current-theme (car args))

(+setq-advice! FUNCS HOW &rest [SYM VAL]...) (macro)

Set buffer-local variables as HOW advices for FUNCS. FUNCS can be expect receiving arguments, the args variable can be used inside VAR-VALS forms to get the arguments passed the the function. (+setq-advice! #'revert-buffer :before revert-buffer-function #'ignore)

(+unsetq-hook! HOOKS &rest VAR1 VAR2...) (macro)

Unbind setq hooks on HOOKS for VARS.

(+compile-functions &rest FNS)

Queue FNS to be byte/natively-compiled after a brief delay.

(+shell-command-to-string-ignore-stderr COMMAND)

Execute shell command COMMAND and return its output as a string. Works like shell-command-to-string with three differences:

  1. It uses +shell-command-switch instead of shell-command-switch.
  2. It returns only stdout and ignore the output of stderr.
  3. It sets TERM to "smart" instead of "dumb", to be able to escape from Emacs-specific early exit in ".bashrc".

(+env-save)

Load environment variables from shell and save them to +env-file.

(+env-load)

Load environment variables from +env-file.

(+ignore-root &rest ROOTS)

Add ROOTS to ignored projects, recentf, etc.

(+package-disabled-p PACKAGE &optional MODULE)

Is package PACKAGE disabled in minemacs-disabled-packages. Optionally, check also for the containing MODULE.

(minemacs-modules &optional INCLUDE-ON-DEMAND INCLUDE-OBSOLETE)

List all the available modules. With optional INCLUDE-ON-DEMAND and INCLUDE-OBSOLETE.

(+file-read-to-string FILENAME)

Return a string with the contents of FILENAME.

(+directory-subdirs DIR)

Return a list of sub-directories in DIR.

(+directory-ensure &rest PATH-PARTS)

Concatenate PATH-PARTS to construct a path and return it. Ensure the path exists, if not create it. The exact behavior is to create the parent directory if the path is a file, and if the path is a directory, create that directory.

(+lockedp NAME)

Return non-nil if the resource NAME is locked.

(+locked-by-this-process-p NAME)

Return non-nil if the resource NAME locked by this Emacs instance.

(+lock NAME)

Lock the resource named NAME.

(+unlock NAME &optional FORCE-P)

Unlock the resource named NAME if locked by this process. If FORCE-P is non-nil, force unlocking even if the resource is not locked by the current process.

(+def-dedicated-tab! NAME [[:exit-hook HOOK] [:exit-func FUNC]]FORMS...) (macro)

Define +CMD command to run BODY in a dedicated tab. If not specified, BODY defaults to (CMD). You can pass an exit hook or exit function on which, the created workspace will be deleted.

(+eglot-auto-enable)

Auto-enable Eglot in configured modes in +eglot-auto-enable-modes.

(+eglot-use-on-all-supported-modes MODE-LIST)

Add all modes in MODE-LIST to +eglot-auto-enable-modes.

(+eglot-register MODES &rest SERVERS)

Register MODES with LSP SERVERS. Examples: (+eglot-register 'vhdl-mode "vhdl_ls") (+eglot-register 'lua-mode "lua-language-server" "lua-lsp") (+eglot-register '(c-mode c++-mode) '("clangd" "--clang-tidy" "-j=12") "ccls")

(+project-scan-for-projects &optional DIR)

Scan and remember projects under DIR or +project-scan-dir-paths.

(+project-super-project-try-or-fail DIR)

Find super-project root starting from DIR.

(+super-project-define-commands PACKAGE &rest COMMANDS)

Define PACKAGE's COMMANDS for super-project context.

(+project-safe-root &optional PROJ)

Return the root of PROJ using several backends, don't fail.

(minemacs-get-enabled-proxies)

Get a list of enabled proxies.

(minemacs-set-enabled-proxies PROXIES)

Set PROXIES.

(minemacs-enable-proxy PROXIES)

Set *_proxy Linux environment variables from PROXIES.

(minemacs-disable-proxy)

Unset *_proxy Linux environment variables.

(+with-proxies &rest BODY) (macro)

Execute BODY with proxies enabled from minemacs-proxies.

(+with-no-proxies &rest BODY) (macro)

Execute BODY with proxies disabled.

(+serialize-sym SYM &optional DIR FILENAME-FORMAT)

Serialize SYM to DIR. If FILENAME-FORMAT is non-nil, use it to format the file name (ex. "file-%s.el"). Return the written file name, or nil if SYM is not bound.

(+deserialize-sym SYM &optional DIR MUTATE FILENAME-FORMAT)

Deserialize SYM from DIR, if MUTATE is non-nil, assign the object to SYM. If FILENAME-FORMAT is non-nil, use it to as a format (ex. "file-%s.el"). Return the deserialized object, or nil if the SYM.el file dont exist.

(+scratch-buffer &optional DONT-RESTORE-P MODE DIRECTORY PROJ-NAME)

Return a scratchpad buffer in major MODE. When DONT-RESTORE-P, do not load the previously saved persistent buffer. Load persistent buffer dedicated to PROJ-NAME when provided. When provided, set the default-directory to DIRECTORY.

(+scratch-persist-buffer-h &rest ARGS)

Save the current buffer to +scratch-dir.

(+scratch-persist-all-scratch-buffers-h &rest ARGS)

Save all scratch buffers to +scratch-dir.

(+scratch-persist-buffers-after-switch-h &rest ARGS)

Kill scratch buffers when they are no longer visible, saving them to disk.

(+scratch-open-buffer &optional ARG PROJECT-P SAME-WINDOW-P)

Pop up a persistent scratch buffer. If passed the prefix ARG, do not restore the last scratch buffer. If PROJECT-P is non-nil, open a persistent scratch buffer associated with the current project. When SAME-WINDOW-P is non-nil, open in the current window.

(+switch-to-scratch-buffer &optional ARG PROJECT-P)

Like +scratch-open-buffer, but switch to it in the current window. If passed the prefix ARG, do not restore the last scratch buffer. If PROJECT-P, open the persistent buffer dedicated to the current project.

(+scratch-open-project-scratch-buffer &optional ARG SAME-WINDOW-P)

Opens the (persistent) project scratch buffer in a popup. If passed the prefix ARG, do not restore the last scratch buffer. When SAME-WINDOW-P is non-nil, open in the same window.

(+scratch-switch-to-project-scratch-buffer &optional ARG)

Like +scratch-open-project-scratch-buffer, but switch in the current window. If passed the prefix ARG, do not restore the last scratch buffer.

(+scratch-revert-scratch-buffer)

Revert scratch buffer to last persistent state.

(+scratch-delete-persistent-scratch-file &optional ARG)

Deletes a scratch buffer file in +scratch-dir. If prefix ARG, delete all persistent scratches.

(+scratch-replace-with-persistent-scratch &optional ARG PROJECT-P)

Replace the scratch buffer with a persistent one. ARG and PROJECT-P are passed to +scratch-open-buffer.

(+font-installed-p FONT-FAMILY)

Check if FONT-FAMILY is installed on the system.

(+apply-font-or-script SCRIPT-OR-FACE)

Set font for SCRIPT-OR-FACE from minemacs-fonts-plist.

(+setup-fonts)

Setup fonts.

(+subtle-mode-line)

Subtle look for the mode-line.

(minemacs-try-load-extra-mode)

Load extra mode if available.

(minemacs-on-demand-try-load-companion-packages)

Load companion packages for the current buffer's mode.

(minemacs-load-companion-packages-for-buffer)

Load companion packages applicables to the current's buffer mode.

(minemacs-on-demand-try-auto-mode)

Try to automatically enable a mode for the current buffer.

(minemacs-on-demand-try-magic-mode)

Try to automatically enable a mode for FILENAME.

(minemacs-on-demand-try-interpreter-mode)

Try to automatically enable a mode based on the :interpreter-mode value.

(minemacs-run-build-functions &optional DONT-ASK-P)

Run all build functions in minemacs-build-functions. Call functions without asking when DONT-ASK-P is non-nil.

(minemacs-bump-packages)

Update MinEmacs packages to the last revisions (can cause breakages).

(minemacs-upgrade PULL-MINEMACS)

Upgrade the packages list to the locked revisions. This takes into account the explicitly pinned packages. When called with C-u or with PULL-MINEMACS, it will run "git pull" in MinEmacs directory before upgrading.

(minemacs-root-dir-cleanup)

Cleanup MinEmacs' root directory.

(+straight-prune-build-cache)

Prune straight.el build directories for old Emacs versions.

(minemacs-cleanup-emacs-directory)

Cleanup unwanted files/directories from MinEmacs' directory.

(minemacs-apply-performance-tweaks)

Set some Emacs variables for better (!) performance.

(minemacs-load-module &rest MODULES)

Interactively install and load MODULES that aren't enabled in "modules.el". When called with C-u, it prompts also for on-demand modules. When called with C-u C-u, it prompts also for obsolete modules.

(+file-name-incremental FILENAME)

Return a unique file name for FILENAME. If "file.ext" exists, returns "file-0.ext".

(+delete-this-file &optional PATH FORCE-P)

Delete PATH. If PATH is not specified, default to the current buffer's file. If FORCE-P, delete without confirmation.

(+delete-file-or-directory FILE-OR-DIRECTORY &optional TRASHRECURSIVE)

Delete FILE-OR-DIRECTORY with delete-file or delete-directory. Move to trash when TRASH is non-nil, delete directories recursively when RECURSIVE is non-nil.

(+delete-this-file-and-buffer &optional FILENAME)

Delete FILENAME and its associated visiting buffer.

(+tramp-sudo-file-path FILE)

Construct a Tramp sudo path to FILE. Works for both local and remote files.

(+sudo-find-file FILE)

Open FILE as root.

(+sudo-this-file)

Open the current file as root.

(+sudo-save-buffer)

Save this buffer as root. Save as new file name if called with prefix.

(+copy-this-file-name)

Save (copy) the file name of this buffer to the kill ring.

(+patch-get-patched-files PATCH-BUFF)

Get the list of the patches A/B files mentioned in PATCH-BUFF.

(+apply-patch-dwim PATCH-BUF &optional PROJ-DIR)

Apply PATCH-BUF to the relevant file in PROJ-DIR. When a region is active, propose to use it as the patch buffer.

(+clean-file-name FILENAME &optional DOWNCASE-P)

Clean FILENAME, optionally convert to DOWNCASE-P.

(+html2pdf INFILE OUTFILE &optional BACKEND)

Convert HTML file INFILE to PDF and save it to OUTFILE. When BACKEND is provided, the corresponding program is used, otherwise, the value of +html2pdf-default-backend is used.

(+txt2html INFILE OUTFILE &optional MAIL-MODE-P)

Convert plain-text file INFILE to HTML and save it to OUTFILE. When MAIL-MODE-P is non-nil, --mailmode is passed to "txt2html".

(+save-as-pdf INFILE &optional MAIL-MODE-P)

Save URL as PDF. This function's signature is compatible with browse-url-browser-function so it can be used to save HTML pages or emails to PDF. When MAIL-MODE-P is non-nil, treat INFILE as a mail.

(+single-file URL OUT-FILE)

Save URL into OUT-FILE as a standalone HTML file.

(+browse-html-file FILE)

Browser HTML FILE following +browse-html-file-browser-priority. If no function from +browse-html-file-browser-priority is available, use browse-url. When called with universal argument, open the current buffer's file.

(+serial-running-p)

Is there a serial port terminal running?

(+serial-run-commands COMMANDS &optional PORT BAUD)

Run COMMANDS on a device via serial communication. If PORT or BAUD are nil, use values from +serial-port and +serial-baudrate.

(+net-get-ip-address &optional DEV)

Get the IP-address for device DEV (default: eth0) of the current machine.

(+github-latest-release REPO &optional FALLBACK-RELEASE TRIM-V-PREFIX)

Get the latest release of REPO. Strips the "v" at left. Fallback to FALLBACK-RELEASE when it can't get the last one. When TRIM-V-PREFIX is non-nil, trim the "v" prefix from the version.

(+dir-locals-reload-for-this-buffer)

Reload directory-local for the current buffer.

(+dir-locals-reload-for-all-buffers-in-this-directory)

Reload dir-locals for all buffers in the current default-directory.

(+dir-locals-toggle-autoreload &optional ENABLE)

Toggle autoloading dir-local variables after editing the ".dir-locals" file. If ENABLE is non-nil, force enabling autoreloading.

(+dir-locals-open-or-create)

Open or create the dir-locals.el for the current project.

(+what-faces POS)

Get the font faces at POS.

(+screenshot-svg OUTFILE)

Save a screenshot of the current frame as an SVG image to OUTFILE. If launched with a prefix or universal argument, it waits for a moment (defined by +screenshot-delay) before taking the screenshot.

(+minibuffer-kill-minibuffer)

Kill the minibuffer when switching to window with mouse.

(+region-or-thing-at-point &optional LEAVE-REGION-MARKED)

Return the region or the thing at point. If LEAVE-REGION-MARKED is no-nil, don't call desactivate-mark when a region is selected.

(+insert-thing-at-point)

Insert region or symbol in the minibuffer.

(+kill-region-or-backward-word)

Kill selected region if region is active. Otherwise kill a backward word.

(+kill-whitespace-or-word ARG)

Kill forward whitespace or word. With argument ARG, do this that many times. Restricts the effect of kill-word to the current line.

(+backward-kill-whitespace-or-word ARG)

Kill backward whitespace or word. With argument ARG, do this that many times. Restricts the effect of backward-kill-word to the current line.

(+set-indent-width WIDTH)

Change the indentation size to WIDTH of the current buffer. The effectiveness of this command is significantly improved if you have editorconfig or dtrt-indent installed.

(+goto-line N)

Go to line N, like goto-line but for Lisp code.

(+autoload-region BEG END)

Add the ;;;###autoload to region (BEG . END).

(+webjump)

Like webjump, with initial query filled from +region-or-thing-at-point.

(+eglot-ccls-inheritance-hierarchy &optional DERIVED)

Show inheritance hierarchy for the thing at point. If DERIVED is non-nil (interactively, with prefix argument), show the children of class at point.

(+eglot-help-at-point)

Request documentation for the thing at point.

(+server-restart)

Restart the Emacs server.

(+binary-buffer-p &optional BUFFER)

Return whether BUFFER or the current buffer is binary. A binary buffer is defined as containing at least one null byte. Returns either nil, or the position of the first null byte.

(+binary-file-p FILE &optional CHUNK)

Is FILE a binary? This checks the first CHUNK of bytes, defaults to 1024.

(+binary-hexl-buffer-p &optional BUFFER)

Does BUFFER (defaults to the current buffer) should be viewed using hexl-mode.

(+binary-hexl-mode-maybe)

Activate hexl-mode if relevant for the current buffer.

(+kill-buffer-and-its-windows BUFFER &optional MSGP)

Kill BUFFER and delete its windows. Default is current-buffer. BUFFER may be either a buffer or its name (a string).

(+region-to-buffer START END BUFFER ARG)

Copy region to BUFFER: At beginning (prefix >= 0), end (< 0), or replace. START and END are the region boundaries. BUFFER is a buffer or its name (a string). With prefix ARG >= 0: append-to-buffer: Append contents of region to end of BUFFER. (Point is moved to end of BUFFER first.) With prefix ARG < 0: prepend-to-buffer: Prepend contents of region to beginning of BUFFER. (Point is moved to beginning of BUFFER first.) With no prefix ARG (nil): copy-to-buffer. Write region to BUFFER, replacing any previous contents.

(+region-to-file START END FILENAME ARG)

With prefix arg, this is append-to-file. Without, it is write-region. START and END are the region boundaries. Prefix ARG non-nil means append region to end of file FILENAME. Prefix ARG nil means write region to FILENAME, replacing contents.

(+kill-some-buffers &optional LIST)

Kill some buffers. Asks the user whether to kill the modified ones. Non-interactively, if optional argument LIST is non-nil, it specifies the list of buffers to kill, asking for approval for each one. See kill-some-buffers.

(+kill-buffer-ask-if-modified BUFFER)

Like kill-buffer-ask, but kills BUFFER without confirmation when unmodified. Kill without asking for buffer names in +kill-buffer-no-ask-list.

(+delete-extra-windows-for-buffer)

Delete all other windows showing the selected window's buffer.

(+delete-window-maybe-kill-buffer)

Delete selected window. If no other window shows its buffer, kill the buffer too.

(+replace-in-buffer OLD NEW)

Replace OLD with NEW in the current buffer.

(+clear-frenchy-ponctuations)

Replace french ponctuations (like unsectable space) by regular ones.

(+save-buffer-preserving-modtime)

Call save-buffer, but keep the visited file's modtime the same.

(+kill-region-as-paragraph)

Kill (copy) region as one paragraph. This command removes new line characters between lines.

(+first-line-empty-p)

Return t when the first line of the buffer is empty.

(+project-add-project DIR &optional DONT-ASK)

Switch to another project at DIR. When DIR is not detected as a project, ask to force it to be by adding a ".project.el" file. When DONT-ASK is non-nil, create the file without asking.

(+project-forget-zombie-projects)

Forget all known projects that don't exist any more. Like project-forget-zombie-projects, but handles remote projects differently, it forget them only when we are sure they don't exist.

(+project-gdb)

Invoke gdb in the project's root.

(+project-list-cleanup)

Forget all duplicate known projects (/home/user/proj, ~/proj).

(+project-root-initialize)

Initialize project list from +project-root-wildcards.

(+xref-find-references-at-point)

Find references to the identifier at or around point.

(minemacs-extract-packages-descriptions)

Extract the descriptions of MinEmacs packages.

(+list-external-dependencies)

Show the list of declared external dependencies.

(+spellcheck-correct)

Correct word at point.

(+spellcheck-mode &optional ARG)

Spell checking mode, with ARG. Based on jinx-mode if available, spell-fu-mode and falls back to built-in flyspell-mode.

(+clang-format-get-style)

Get the "-style" argument for clang-format.

(+cocogitto-bump LEVEL &optional PRE)

Bump version LEVEL (auto, major, minor or patch), and with PRE if it is a pre-release. This command stashes the current workspace before bumping the version, and restores it after that.

(eglot-ltex-workspace-config-fn &optional SERVER)

A function to use as a value of eglot-workspace-configuration. It generates the workspace configuration dynamically, taking into account changed values of eglot-ltex-language, eglot-ltex-dictrionary, and so on.

(eglot-ltex-enable-handling-client-commands)

Enable Eglot hack to handle code actions of LTeX-LS.

(eglot-ltex-disable-handling-client-commands)

Disable Eglot hack to handle code actions of LTeX-LS.

(+mu4e-view-select-attachment)

Use completing-read to select a single attachment. Acts like a singular mu4e-view-save-attachments, without the saving.

(+mu4e-view-open-attachment)

Select an attachment, and open it.

(+mu4e-view-select-mime-part-action)

Select a MIME part, and perform an action on it.

(+mu4e-part-selectors PARTS)

Generate selection strings for PARTS.

(+mu4e-view-save-all-attachments &optional ASK-DIR)

Save all files from the current view buffer. With ASK-DIR is non-nil, user can specify the target-directory; otherwise one is determined using mu4e-attachment-dir.

(+mu4e-register-account LABEL MAILDIR LETVARS &optional DEFAULT-PGMAIL-P)

Register a mu4e context named LABEL, located in MAILDIR. LETVARS contains the alist of local variables with their values. If DEFAULT-P is non-nil, the context is placed first and considered the default one. If GMAIL-P is non-nil, addresses are saved to +mu4e-gmail-accounts to be used later for Gmail specific actions.

(+mu4e-save-message-at-point &optional MSG)

Copy message at point to somewhere else as _.eml.

(+mu4e-view-save-mail-as-pdf &optional MSG SKIP-HEADERS)

Save current MSG as PDF. If SKIP-HEADERS is set, do not show include message headers.

(+mu4e-extras-locks-setup)

Setup locks for mu4e's server.

(+mu4e-sent-from-gmail-p &optional MSG)

Return the "from" address if it is in the registred Gmail accounts. If MSG is provided, use it, else, extract the "from" field from the envelope of the current message.

(+mu4e-colorize-str STR &optional UNIQUE HERRING)

Apply a face from +mu4e-header-colorized-faces to STR. If HERRING is set, it will be used to determine the face instead of STR. Will try to make unique when non-nil UNIQUE, a quoted symbol for a alist of current strings and faces provided.

(+mu4e-ui-setup)

Apply UI setup.

(+mu4e-ui-modeline-tweaks)

Apply UI tweaks based on nerd-icons.

(+org-extras-toggle-latex-equation-numbering &optional ENABLE)

Toggle whether LaTeX fragments are numbered. Force enabling when ENABLE is non-nil.

(+org-extras-inject-latex-fragment:around-a ORIG-FUNC &rest ARGS)

Advice function to inject latex code before and/or after the equation in a latex fragment. You can use this to set \mathversion{bold} for example to make it bolder. The way it works is by defining :latex-fragment-pre-body and/or :latex-fragment-post-body in the variable org-format-latex-options. These strings will then be injected before and after the code for the fragment before it is made into an image.

(+org-extras-inject-latex-fragments)

Toggle whether you can insert latex in fragments.

(+org-lower-case-keywords-and-properties)

Lower case Org keywords and properties and block identifiers. Example: "#+TITLE" -> "#+title" "#+BEGIN_EXAMPLE" -> "#+begin_example" ":PROPERTIES:" -> ":properties:".

(+org-extras-responsive-images-setup)

Enable responsive images' size.

(+org-extras-equation-numbering-setup)

Enable LaTeX equations renumbering.

(+org-extras-multifiles-document-setup)

Enable multi-files documents.

(+org-extras-latex-classes-setup)

Setup some extra LaTeX classes.

(+org-extras-outline-path-setup)

Fix the font size issue in Org's outline in the echo area.

(+org-extras-pretty-latex-fragments-setup)

Enable prettifing Org's LaTeX fragments.

(+org-extras-lower-case-keywords-and-properties-setup)

Automatically convert KEYWORDS to lower case on save.

(+org-extras-setup)

Enable all Org-mode extra tweaks.


Markdown README file generated by make-readme-markdown.el