Skip to main content
Glama

generate_emacs_lisp_code

Automate Emacs tasks by generating Elisp code for specified purposes using the Emacs MCP Server. Simplify interaction and control within Emacs through AI-driven code creation.

Instructions

Generate Emacs Lisp code for the given purpose.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
purposeYes

Implementation Reference

  • The primary handler function for the 'generate_emacs_lisp_code' MCP tool. It is registered via the @mcp.tool() decorator and delegates execution to the helper function after logging.
    @log_execution @mcp.tool() def generate_emacs_lisp_code(purpose: str) -> str: """Generate Emacs Lisp code for the given purpose.""" return generate_emacs_lisp_code_from_llm(purpose)
  • Supporting helper function decorated with @llmify to generate Emacs Lisp code using an LLM, based on the provided purpose.
    @log_execution @llmify def generate_emacs_lisp_code_from_llm(purpose: str): """Generate Emacs Lisp code for the following purpose: {{ purpose }}. Make sure to include a docstring in the code, and insert explanatory comments. MAKE SURE TO ONLY RETURN THE CODE, DO NOT RETURN ANY EXPLANATION OR ADDITIONAL TEXT. DO NOT WRAP THE CODE IN MARKDOWN CODE BLOCKS. """ pass

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vivekhaldar/emacs-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server