help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Question Regarding Line Number Mode For Working With LSP Mode


From: Eli Zaretskii
Subject: Re: Question Regarding Line Number Mode For Working With LSP Mode
Date: Thu, 26 May 2022 19:24:00 +0300

> Date: Thu, 26 May 2022 11:47:25 -0400
> From: "Samuel Banya" <sbanya@fastmail.com>
> 
> Hey Eli,
> 
> I tried to do this, but unfortunately using ':hook' for LSP mode within my 
> config doesn't work for some reason, check the ':hook' section below 
> (https://github.com/SamuelBanya/SamsEmacs/blob/main/configuration.org)
> 
> #+begin_src emacs-lisp
>   (defun ef/lsp-mode-setup ()
>     ;; Taken from this 'System Crafters' video:
>     ;; https://www.youtube.com/watch?v=E-NAM9U5JYE
>     ;; This allows breadcrumb segments to appear in projects
>     (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file 
> symbols))
>     (lsp-headerline-breadcrumb-mode))
> 
>   (use-package lsp-mode
>     :ensure t
>     :commands (lsp lsp-deferred)

Sorry, I'm unfamiliar with use-package.

>     :hook
>     (display-line-numbers-mode)

What is the syntax and the semantics of :hook?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]