From: Utkarsh Singh <utkarsh190601@gmail.com>
To: 46660@debbugs.gnu.org
Subject: bug#46660: [PATCH] 28.0.50; Support for PKGBUILD files on Arch Linux
Date: Sat, 20 Feb 2021 11:06:04 +0530 [thread overview]
Message-ID: <87eehbwbaz.fsf@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1088 bytes --]
Hi,
Can we add support for PKGBUILD(1) files for Emacs which are used to
install packages from AUR(Arch User Repository).
PKGBUILD are just normal shell script files, so we just have to add
sh mode to it:
diff --git a/lisp/files.el b/lisp/files.el
index 68e883513c..7d01938144 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2723,6 +2723,7 @@ auto-mode-alist
("\\.scm\\.[0-9]*\\'" . scheme-mode)
("\\.[ckz]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)
("\\.bash\\'" . sh-mode)
+ ("PKGBUILD$" . sh-mode)
("\\(/\\|\\`\\)\\.\\(bash_\\(profile\\|history\\|log\\(in\\|out\\)\\)\\|z?log\\(in\\|out\\)\\)\\'" . sh-mode)
("\\(/\\|\\`\\)\\.\\(shrc\\|zshrc\\|m?kshrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'" . sh-mode)
("\\(/\\|\\`\\)\\.\\([kz]shenv\\|xinitrc\\|startxrc\\|xsession\\)\\'" . sh-mode)
There is also a special pkgbuild-mode(2) for editing these files which
is also an derivation of sh-mode.
[1]: https://wiki.archlinux.org/index.php/PKGBUILD
[2]: https://github.com/juergenhoetzel/pkgbuild-mode
--
Utkarsh Singh
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
next reply other threads:[~2021-02-20 5:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87r1l74dfg.fsf@gmail.com>
2021-02-20 5:36 ` Utkarsh Singh [this message]
2021-02-20 8:42 ` bug#46660: [PATCH] 28.0.50; Support for PKGBUILD files on Arch Linux Andreas Schwab
2021-02-20 12:16 ` bug#46660: [Andreas Schwab] " Utkarsh Singh
2021-02-22 15:08 ` Lars Ingebrigtsen
2021-02-23 4:31 ` bug#46660: [Utkarsh Singh] " Utkarsh Singh
2021-02-23 15:43 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87eehbwbaz.fsf@gmail.com \
--to=utkarsh190601@gmail.com \
--cc=46660@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.