From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wilhelm Kirschbaum Newsgroups: gmane.emacs.bugs Subject: bug#67207: [PATCH] Add elixir-ts-mode-hook to elixir-ts-mode Date: Wed, 15 Nov 2023 20:32:42 +0200 Message-ID: <874jhmn9us.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22510"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.9.3; emacs 30.0.50 To: 67207@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 15 19:36:23 2023 Return-path: Envelope-to: geb-bug-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 1r3KkR-0005ht-1u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 15 Nov 2023 19:36:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r3Kk9-0000Bo-1T; Wed, 15 Nov 2023 13:36:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3Kk8-0000BX-0T for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 13:36:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3Kk7-0003xA-OI for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 13:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r3Kk6-0005c6-JK for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 13:36:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Nov 2023 18:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 67207 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170007333921545 (code B ref -1); Wed, 15 Nov 2023 18:36:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Nov 2023 18:35:39 +0000 Original-Received: from localhost ([127.0.0.1]:53776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3Kjf-0005bN-Bx for submit@debbugs.gnu.org; Wed, 15 Nov 2023 13:35:39 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:46558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r3KjV-0005aj-7j for submit@debbugs.gnu.org; Wed, 15 Nov 2023 13:35:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r3KjO-0006v8-8s for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 13:35:18 -0500 Original-Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r3KjL-0003Jz-CF for bug-gnu-emacs@gnu.org; Wed, 15 Nov 2023 13:35:16 -0500 Original-Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40859c464daso57182285e9.1 for ; Wed, 15 Nov 2023 10:35:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700073311; x=1700678111; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=w3mqX2iQNuhTUA8C/7jbFz0bhaoYS6P2+umF0l6l5x4=; b=aN57DknP9wLv8elx27dwS8hSyvHo8RHos5vQRqTiX4MKBEqUuaOPVSqBHEXlax1lYh gDv/aoTphYA6ulX6V9OZiNNVDqrlwSkF3X2XseMFm8HmUtIvdhigEwBDP5KA82WufpkN XssV5KXzsGRpstWg9Xazl126MZ9sZVmfLRogrn5sUG7YVBzres6gXyh9r/6U/HJPmCjk 9uwI0DSRL1XO+jIvIeqPoByIwd/5K6NVEMd39LSM0ExamGFIWUbEqYl9bWJq6N8irWsx agib+arDIw1/RKh/NzHLKn3E6AuGexQF2Ocweak/pD/o4nCEaQWFo+LXmfHJUw7KbyKY YJwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700073311; x=1700678111; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w3mqX2iQNuhTUA8C/7jbFz0bhaoYS6P2+umF0l6l5x4=; b=YFWbIZ3N6Dq0a+7DHKQ6f+ZgkDyi1112MzECbRLTEl8pH3sjnkYXmsyjnuqkqp9vLx 4dIaMZN5mXFfDkAmYYVU2Gt6sYNavprxF+TC8uL+nSQwIcyeVrpw6VMteOJtV1rKjfXb Pk1uLQZJ1jGVyZTY608LTla0ylwDQMiUPmZ+vs9jWVcsoQFQJQlXIwNpwO+0ARFsP/yi fMgxCub+4qQJLLOF1cQn2I7leyn5XLVRNAVgCyyzIn95g14SAw1Xd2oqOUZoWoypwfsB ShdgBkck65TRpJ70SQnxB9A1Zw7gsTBzmsQPwAyYq3jcT+taBQn7GJD/crmtP3lyRH+C A7Xw== X-Gm-Message-State: AOJu0Yz8G0RSkEHhHhUt45BMyt2zFPqrPZa4Ptv9L/2TR8L6uYzajw41 x4s5+qJEBanTR1YIhf6kAgZT+yvolIs= X-Google-Smtp-Source: AGHT+IHyLwXtqsu5hBDzz0gQgGfc/FJcMhCrMUSGi8idUVa8yfMf64ct3mvEZS4YErIHrsPiZSmOUA== X-Received: by 2002:a05:600c:450d:b0:409:5a92:4718 with SMTP id t13-20020a05600c450d00b004095a924718mr10333384wmo.36.1700073311350; Wed, 15 Nov 2023 10:35:11 -0800 (PST) Original-Received: from melissa.local ([2c0f:ef18:1431:0:b09:9616:db04:c248]) by smtp.gmail.com with ESMTPSA id l15-20020a05600c4f0f00b00405959469afsm545317wmq.3.2023.11.15.10.35.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 10:35:10 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::32e; envelope-from=wkirschbaum@gmail.com; helo=mail-wm1-x32e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:274409 Archived-At: --=-=-= Content-Type: text/plain; format=flowed Tags: patch This change was requested by a user and seems to be useful. I am also trying the `submit-emacs-patch` command, so hope I am doing it right. In GNU Emacs 30.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) of 2023-11-14 built on _ Repository revision: 3074f4cfc2efc5a1d75186ad44790a21cecda3d3 Repository branch: master System Description: Arch Linux Configured using: 'configure --with-sound=yes --with-json --with-pgtk --with-native-compilation=aot --with-xwidgets --with-imagemagick --with-tree-sitter' --=-=-= Content-Type: text/patch Content-Disposition: attachment; filename=0001-Add-elixir-ts-mode-hook-to-elixir-ts-mode.patch >From 2ce080a17b7e89d63fb22826a91b931f987d8cf2 Mon Sep 17 00:00:00 2001 From: Wilhelm H Kirschbaum Date: Wed, 15 Nov 2023 20:13:02 +0200 Subject: [PATCH] Add elixir-ts-mode-hook to elixir-ts-mode * lisp/progmodes/elixir-ts-mode.el (elixir-ts-mode-hook): Make hook available to customize. --- lisp/progmodes/elixir-ts-mode.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/progmodes/elixir-ts-mode.el b/lisp/progmodes/elixir-ts-mode.el index 05edb4159a1..ad7c599edb1 100644 --- a/lisp/progmodes/elixir-ts-mode.el +++ b/lisp/progmodes/elixir-ts-mode.el @@ -74,6 +74,13 @@ elixir-ts-indent-offset :safe 'integerp :group 'elixir-ts) +(defcustom elixir-ts-mode-hook nil + "Hook run after entering `elixir-ts-mode'." + :type 'hook + :options '(eglot-ensure) + :group 'elixir-ts + :version "30.1") + (defface elixir-ts-font-comment-doc-identifier-face '((t (:inherit font-lock-doc-face))) "Face used for @comment.doc tags in Elixir files.") -- 2.42.1 --=-=-=--