emacs-buffer

Automate Emacs buffer operations with Elisp code patterns.

1|Updated Dec 14, 2025
One-click install
npx skills add https://github.com/jingtaozf/emacs-claude-agent --skill emacs-buffer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: emacs-buffer
Source: https://github.com/jingtaozf/emacs-claude-agent/tree/main/.claude/skills/emacs-buffer
Command: npx skills add https://github.com/jingtaozf/emacs-claude-agent --skill emacs-buffer

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing multiple Emacs buffers can be tedious and error-prone. This Skill provides ready-made Emacs Lisp (Elisp) patterns for listing buffers, switching between them, creating new buffers, killing unused ones, and inspecting buffer contents, helping you streamline your workflow.

Core Features & Use Cases

  • List, filter, and identify buffers by name or mode.
  • Switch, create, and kill buffers with concise Elisp snippets.
  • Inspect and manipulate buffer contents programmatically, including reading and inserting text.
  • Use in scenarios like quick workspace setup, debugging sessions with many buffers, or automating repetitive buffer tasks.

Quick Start

Request an Emacs Lisp snippet to list, switch, create, or kill buffers.

Frequently Asked Questions about emacs-buffer

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

FAQPage Schema
How do I switch between Emacs buffers using Elisp?

To switch Emacs buffers programmatically, use Elisp patterns that target specific buffer names or modes. This allows you to automate quick workspace transitions and streamline debugging sessions by instantly navigating to the required buffer without manual selection.

What is the best way to list and filter Emacs buffers by mode?

Listing and filtering Emacs buffers by mode involves using Elisp code to iterate through the buffer list and match specific mode attributes. This approach helps developers identify relevant buffers during complex debugging sessions and manage workspace clutter efficiently.

How do I kill unused Emacs buffers programmatically?

Killing unused Emacs buffers programmatically requires Elisp snippets that identify target buffers by name or mode and execute kill-buffer commands. This removes unnecessary buffers from your workspace, reducing clutter and preventing memory overhead during large projects.

Can I read and insert text into buffer contents with Emacs Lisp?

Yes, you can read and insert text into Emacs buffer contents using Elisp. This Skill provides code patterns for inspecting buffer contents programmatically, allowing you to extract data and manipulate text directly within your automated Elisp workflows.