highlight

Highlight specified line regions in Emacs files via emacsclient.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/benonions/dotfiles --skill highlight-benonions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: highlight
Source: https://github.com/benonions/dotfiles/tree/main/codex/.codex/skills/community/emacs-skills/highlight
Command: npx skills add https://github.com/benonions/dotfiles --skill highlight-benonions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill allows users to quickly highlight specific regions within one or more files directly in their Emacs editor, improving code navigation and review.

Core Features & Use Cases

  • Highlight arbitrary regions in specified files.
  • Supports multiple files and multiple regions per file.
  • Opens files in a temporary read-only mode for highlighting.
  • Users can easily dismiss highlights by pressing 'q'.

Quick Start

Use the highlight skill to highlight lines 90 to 107 and 114 to 162 in '/path/to/file1.el' and lines 94 to 111 in '/path/to/file2.el'.

Frequently Asked Questions about highlight

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I highlight specific code regions in Emacs for review?

You can highlight specified regions by defining start lines and line counts for your files. This opens them in a temporary read-only mode, enabling focused code navigation and review directly in Emacs.

Can I highlight multiple regions across different files in Emacs at the same time?

Yes, you can highlight multiple regions simultaneously. The functionality supports defining multiple highlight regions per file and across several different files for comprehensive code review.

How do I dismiss highlights in Emacs after reviewing the code?

You can easily dismiss the highlights by pressing the 'q' key. This removes the temporary read-only highlighting view and returns you to your standard text editing environment.

Does this code highlighting method require emacsclient to run?

Yes, highlighting regions requires emacsclient to execute. It depends on loading the agent-skill-highlight.el script via emacsclient to apply the specified line highlights in your editor.

What is the best way to highlight arbitrary text regions for focused navigation in Emacs?

The best way to highlight arbitrary text regions is by specifying start lines and line counts. This creates a temporary read-only buffer that enables focused review and navigation within your code.