Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Writing a Language Server in OCaml for Emacs - Fun and Profit

EmacsConf and Emacs hangouts via YouTube

Overview

Explore the world of language servers in this EmacsConf 2023 talk, focusing on writing one in OCaml for Emacs. Learn about Semgrep, the Language Server Protocol, and how to show security bugs early in development. Dive into a case study of Rust Analyzer, understanding its benefits and applications. Discover the technical aspects of language server communication, LSP capabilities, and tips for writing your own. Follow along as the speaker demonstrates how to support a language server through LSP mode in Emacs, create a client, add it to the list of client packages, and incorporate documentation. Gain insights on adding custom commands and capabilities to enhance your Emacs experience with language servers.

Syllabus

Introduction
What is Semgrep?
How do we show security bugs early?
What is the Language Server Protocol?
Case study: Rust Analyzer
Rust Analyzer in action
Why is this useful?
So what about Emacs?
Technical part - Brief communication overview
Example request
LSP capabilities
Tips on writing a LS
Supporting a LS through LSP mode in Emacs
Create a client
Add to list of client packages
Add documentation!
Adding commands and custom capabilities
Thanks for listening

Taught by

EmacsConf and Emacs hangouts

Reviews

Start your review of Writing a Language Server in OCaml for Emacs - Fun and Profit

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.