From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help Subject: Re: Question Regarding Line Number Mode For Working With LSP Mode Date: Thu, 26 May 2022 14:05:38 -0400 Message-ID: <94917762-96dd-4e52-8e04-6a9e37fb7a7a@www.fastmail.com> 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> <83pmk0nty7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11875"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-591-gfe6c3a2700-fm-20220427.001-gfe6c3a27 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 26 20:09:04 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 1nuHuw-0002o5-CH for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 20:09:02 +0200 Original-Received: from localhost ([::1]:42022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nuHuv-0005DA-08 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 26 May 2022 14:09:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37250) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuHsZ-0005C5-5s for help-gnu-emacs@gnu.org; Thu, 26 May 2022 14:06:35 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:47621) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nuHs1-0007St-9k for help-gnu-emacs@gnu.org; Thu, 26 May 2022 14:06:03 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id C2F1C320098B for ; Thu, 26 May 2022 14:05:59 -0400 (EDT) Original-Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Thu, 26 May 2022 14:05:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1653588359; x=1653674759; bh=YSmJ4y+tmn U8I2S1QXpC8TJbS3nM/lGsR7KzASg5hlw=; b=O3gWTExT1azufEa5eWG2ye68m8 wr3V4U9re//bE0GXCU5gvvyCXNUXOUDPBW1tLtPHhvl/y1xLZ2G/03lwq7d61Zff KWEFt0ONPE8mrX/Z7etRA++l9tTcaDUj77S2rY1lb46XUhF5d6sQ4pR8zBy8U563 6YnQJ4UAWK+/4PfIeiqGyEDDxNZ4mmz09ym4ErIvZYRbjib7Ld/3xEhiy4GAge9u xalHe60UHC0yL6bWCQXkDMmsfQO55U6gqk3vwxgtzT5+BtCGVSBkYLtff+FD+0fK 8NLaG2IOFa4yit6McKFDV1pCc0R6TDIi4TUq4p/qMMKpBYI20M5VQO/ui+Hw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653588359; x=1653674759; bh=YSmJ4y+tmnU8I2S1QXpC8TJbS3nM /lGsR7KzASg5hlw=; b=bPTkiTcQq47R/nYG14axgGrW8IM+RvofwYvmnBWdcTH3 3RTG9vp1k/VCv3aTeIYOxkpv/PT0wtkhlgJkadSzwBD1J57M3RgFCfEvJrVXYYet D2bcsdYZmbuqdGhZu1WEA1yo4CJXl3Oq3jpr9241Jlagyah5G+oPtNMDm2QaNnow nL2Z9OKFXqoPZdInzmZ4X0z0FSa/2fR6fpGN6PmxKDP7L1ue4NI2p0Is/bowMKBL tK6mn3qf41x3Kev8D1zevGtrFJ+blopoolgENUEgsgGF+vuzCJpbFdbO8CnDylcU B6SWs70OlEzIm3wyr3rv1OiLOWQZUwJOx1i2WGjpCQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeejgdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrges fhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeeiudehgeduleefhffhle dvhfffhfehleekueehudeiteegkedtuddvtefftdeuveenucffohhmrghinhepghhithhh uhgsrdgtohhmpdgtohhnfhhighhurhgrthhiohhnrdhorhhgpdihohhuthhusggvrdgtoh hmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshgs rghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ib97947f6:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 07B391700068; Thu, 26 May 2022 14:05:59 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <83pmk0nty7.fsf@gnu.org> Received-SPF: pass client-ip=64.147.123.21; envelope-from=sbanya@fastmail.com; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:137415 Archived-At: I actually got it to work by doing the following revision after the 'use-package' declaration for LSP mode: (add-hook 'lsp-mode-hook #'display-line-numbers-mode) Thanks for the help on this. On Thu, May 26, 2022, at 12:24 PM, Eli Zaretskii wrote: > > 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? > >