From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Question Regarding Line Number Mode For Working With LSP Mode Date: Thu, 26 May 2022 19:24:00 +0300 Message-ID: <83pmk0nty7.fsf@gnu.org> References: <542fbc3a-f7da-477d-85e4-4d9db00f06f8@www.fastmail.com> <80ef30d5-6b40-4549-8567-3733eab1cae9@www.fastmail.com> <3db07348-0079-4899-b21b-459a7cc4edcf@www.fastmail.com> <83sfoy4a1y.fsf@gnu.org> <175b3b5e-b8db-4559-a97c-d3463a1c6368@www.fastmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37774"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 26 18:24:45 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nuGHy-0009ac-HO for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 18:24:42 +0200 Original-Received: from localhost ([::1]:54928 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuGHx-0006KD-C7 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 12:24:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40510) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuGHO-0006K3-Fm for help-gnu-emacs@gnu.org; Thu, 26 May 2022 12:24:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38692) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuGHO-0006yA-7E for help-gnu-emacs@gnu.org; Thu, 26 May 2022 12:24:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xrn3XlIZo8Ely/HLw3zkkTaK9ZNa76vaMg3rAW/cO0c=; b=AaCCx77n06mq drKXOnBPfoMMe/mqxJk6PTgWlzGfGTc57pkFKyBkDx4s4KpEiJAXCi3vh6R7Dz6Mnt4AdgoWsLIdW lVTkpeqApBxYov4j3YfUlhyPP2L+vaSMsdOjLCju3UJV6af8ywZe95jFR7dmNuUueJz5HFtt+8nyG 9Ml46+my7dw7Wtjr16JhsXMRLi4onBk0v3qIa9h4V4i5Ie6/Xex+eWvrNw5SEAMcNwV9FtHJWsiau GKDmOvuM954ajzPewKw0kyjk/mh9rdG7OT5xhuGTvoFH1iPY8kvxeya0SKDG0LvEJJWlvQTbozKX8 ShzKt0zEAhwpqWCsQCz/nQ==; Original-Received: from [87.69.77.57] (port=1619 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuGHN-0003ms-Mw for help-gnu-emacs@gnu.org; Thu, 26 May 2022 12:24:06 -0400 In-Reply-To: <175b3b5e-b8db-4559-a97c-d3463a1c6368@www.fastmail.com> (sbanya@fastmail.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:137414 Archived-At: > Date: Thu, 26 May 2022 11:47:25 -0400 > From: "Samuel Banya" > > 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?