[libvirt] [PATCH python 4/7] Add emacs mode marker to activate rpm-spec highlighting

Daniel P. Berrange posted 7 patches 7 years, 8 months ago
[libvirt] [PATCH python 4/7] Add emacs mode marker to activate rpm-spec highlighting
Posted by Daniel P. Berrange 7 years, 8 months ago
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
---
 libvirt-python.spec.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvirt-python.spec.in b/libvirt-python.spec.in
index a98b902..b667ebe 100644
--- a/libvirt-python.spec.in
+++ b/libvirt-python.spec.in
@@ -1,3 +1,5 @@
+# -*- rpm-spec -*-
+
 # This spec file assumes you are building on a Fedora or RHEL version
 # that's still supported by the vendor. It may work on other distros
 # or versions, but no effort will be made to ensure that going forward
-- 
2.14.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH python 4/7] Add emacs mode marker to activate rpm-spec highlighting
Posted by Pavel Hrdina 7 years, 8 months ago
On Thu, Jan 11, 2018 at 04:43:36PM +0000, Daniel P. Berrange wrote:
> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
> ---
>  libvirt-python.spec.in | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>


How about adding the same marker for vim? :)

# vim: set filetype=spec :

However, on Fedora and probably other distributions vim can recognize
the filetype based on the file content.
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list