unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* vim modelines for guix repository
@ 2016-10-22 21:31 ng0
  2016-10-23  5:14 ` Efraim Flashner
  0 siblings, 1 reply; 7+ messages in thread
From: ng0 @ 2016-10-22 21:31 UTC (permalink / raw)
  To: guix-devel

Occasionally I use vim on systems to work on guix and other projects. As
far as I see it, there is nothing similar to .dir-locals.el (the per
directory local variables in emacs) for vim.

We should include modelines for every file to reflect what .dir-locals.el
does when you use emacs. It's probably an unpopular opinion, but I think
we should do this to be more open to people who do not use emacs.
Support for vim and emacs covers most editors which are there to
support.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vim modelines for guix repository
  2016-10-22 21:31 vim modelines for guix repository ng0
@ 2016-10-23  5:14 ` Efraim Flashner
  2016-10-23 16:20   ` ng0
  0 siblings, 1 reply; 7+ messages in thread
From: Efraim Flashner @ 2016-10-23  5:14 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 972 bytes --]

On Sat, Oct 22, 2016 at 09:31:33PM +0000, ng0 wrote:
> Occasionally I use vim on systems to work on guix and other projects. As
> far as I see it, there is nothing similar to .dir-locals.el (the per
> directory local variables in emacs) for vim.
> 
> We should include modelines for every file to reflect what .dir-locals.el
> does when you use emacs. It's probably an unpopular opinion, but I think
> we should do this to be more open to people who do not use emacs.
> Support for vim and emacs covers most editors which are there to
> support.
> 

IMO there's too many files to go adding to the bottom of all the files.
Something I've been thinking about is learning enough vimscript to write
a guix.vim file that'll take care of formatting.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: vim modelines for guix repository
  2016-10-23  5:14 ` Efraim Flashner
@ 2016-10-23 16:20   ` ng0
  2016-10-28  8:30     ` guix emacs mode (was: Re: vim modelines for guix repository) ng0
  0 siblings, 1 reply; 7+ messages in thread
From: ng0 @ 2016-10-23 16:20 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel

Efraim Flashner <efraim@flashner.co.il> writes:

> [ Unknown signature status ]
> On Sat, Oct 22, 2016 at 09:31:33PM +0000, ng0 wrote:
>> Occasionally I use vim on systems to work on guix and other projects. As
>> far as I see it, there is nothing similar to .dir-locals.el (the per
>> directory local variables in emacs) for vim.
>> 
>> We should include modelines for every file to reflect what .dir-locals.el
>> does when you use emacs. It's probably an unpopular opinion, but I think
>> we should do this to be more open to people who do not use emacs.
>> Support for vim and emacs covers most editors which are there to
>> support.
>> 
>
> IMO there's too many files to go adding to the bottom of all the files.
> Something I've been thinking about is learning enough vimscript to write
> a guix.vim file that'll take care of formatting.

I agree, this could be more useful. The best approach would be to move
this to a separate project, so that other systems can create packages
for this to install it.

> -- 
> Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
> Confidentiality cannot be guaranteed on emails sent or received unencrypted

^ permalink raw reply	[flat|nested] 7+ messages in thread

* guix emacs mode (was: Re: vim modelines for guix repository)
  2016-10-23 16:20   ` ng0
@ 2016-10-28  8:30     ` ng0
  2016-10-28  9:47       ` guix emacs mode Alex Kost
  0 siblings, 1 reply; 7+ messages in thread
From: ng0 @ 2016-10-28  8:30 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel

ng0 <ng0@we.make.ritual.n0.is> writes:

> Efraim Flashner <efraim@flashner.co.il> writes:
>
>> [ Unknown signature status ]
>> On Sat, Oct 22, 2016 at 09:31:33PM +0000, ng0 wrote:
>>> Occasionally I use vim on systems to work on guix and other projects. As
>>> far as I see it, there is nothing similar to .dir-locals.el (the per
>>> directory local variables in emacs) for vim.
>>> 
>>> We should include modelines for every file to reflect what .dir-locals.el
>>> does when you use emacs. It's probably an unpopular opinion, but I think
>>> we should do this to be more open to people who do not use emacs.
>>> Support for vim and emacs covers most editors which are there to
>>> support.
>>> 
>>
>> IMO there's too many files to go adding to the bottom of all the files.
>> Something I've been thinking about is learning enough vimscript to write
>> a guix.vim file that'll take care of formatting.
>
> I agree, this could be more useful. The best approach would be to move
> this to a separate project, so that other systems can create packages
> for this to install it.

Different issue, but somehow related: Could we move the emacs
specific settings into an emacs mode if emacs modes can detect
some common structure or however we specify that the current file
which is edited is guix and not guile/scm alone?

>> -- 
>> Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
>> GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
>> Confidentiality cannot be guaranteed on emails sent or received unencrypted
>
>

-- 
♥Ⓐ  ng0  | ng0.chaosnet.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: guix emacs mode
  2016-10-28  8:30     ` guix emacs mode (was: Re: vim modelines for guix repository) ng0
@ 2016-10-28  9:47       ` Alex Kost
  2016-10-28 10:19         ` ng0
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Kost @ 2016-10-28  9:47 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

ng0 (2016-10-28 08:30 +0000) wrote:

> ng0 <ng0@we.make.ritual.n0.is> writes:
>
>> Efraim Flashner <efraim@flashner.co.il> writes:
>>
>>> [ Unknown signature status ]
>>> On Sat, Oct 22, 2016 at 09:31:33PM +0000, ng0 wrote:
>>>> Occasionally I use vim on systems to work on guix and other projects. As
>>>> far as I see it, there is nothing similar to .dir-locals.el (the per
>>>> directory local variables in emacs) for vim.
>>>> 
>>>> We should include modelines for every file to reflect what .dir-locals.el
>>>> does when you use emacs. It's probably an unpopular opinion, but I think
>>>> we should do this to be more open to people who do not use emacs.
>>>> Support for vim and emacs covers most editors which are there to
>>>> support.
>>>> 
>>>
>>> IMO there's too many files to go adding to the bottom of all the files.
>>> Something I've been thinking about is learning enough vimscript to write
>>> a guix.vim file that'll take care of formatting.
>>
>> I agree, this could be more useful. The best approach would be to move
>> this to a separate project, so that other systems can create packages
>> for this to install it.
>
> Different issue, but somehow related: Could we move the emacs
> specific settings into an emacs mode if emacs modes can detect
> some common structure or however we specify that the current file
> which is edited is guix and not guile/scm alone?

Sorry, I don't understand the question.  What does «move the emacs
specific settings into an emacs mode» mean?

Also there is no difference between some guix ".scm" file and a usual
guile ".scm" file.

-- 
Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: guix emacs mode
  2016-10-28  9:47       ` guix emacs mode Alex Kost
@ 2016-10-28 10:19         ` ng0
  2016-10-29  9:07           ` Alex Kost
  0 siblings, 1 reply; 7+ messages in thread
From: ng0 @ 2016-10-28 10:19 UTC (permalink / raw)
  To: Alex Kost; +Cc: guix-devel

Alex Kost <alezost@gmail.com> writes:

> ng0 (2016-10-28 08:30 +0000) wrote:
>
>> ng0 <ng0@we.make.ritual.n0.is> writes:
>>
>>> Efraim Flashner <efraim@flashner.co.il> writes:
>>>
>>>> [ Unknown signature status ]
>>>> On Sat, Oct 22, 2016 at 09:31:33PM +0000, ng0 wrote:
>>>>> Occasionally I use vim on systems to work on guix and other projects. As
>>>>> far as I see it, there is nothing similar to .dir-locals.el (the per
>>>>> directory local variables in emacs) for vim.
>>>>> 
>>>>> We should include modelines for every file to reflect what .dir-locals.el
>>>>> does when you use emacs. It's probably an unpopular opinion, but I think
>>>>> we should do this to be more open to people who do not use emacs.
>>>>> Support for vim and emacs covers most editors which are there to
>>>>> support.
>>>>> 
>>>>
>>>> IMO there's too many files to go adding to the bottom of all the files.
>>>> Something I've been thinking about is learning enough vimscript to write
>>>> a guix.vim file that'll take care of formatting.
>>>
>>> I agree, this could be more useful. The best approach would be to move
>>> this to a separate project, so that other systems can create packages
>>> for this to install it.
>>
>> Different issue, but somehow related: Could we move the emacs
>> specific settings into an emacs mode if emacs modes can detect
>> some common structure or however we specify that the current file
>> which is edited is guix and not guile/scm alone?
>
> Sorry, I don't understand the question.  What does «move the emacs
> specific settings into an emacs mode» mean?

I don't understand much, well to be honest: nothing, on how modes
in emacs work. I meant that we maybe could move whatever the
.dir-locals.el sets into some external modules/files/set if
possible at all. It probably works for gentoo .ebuild because
they have a different file extension than bash, but at their core
it is bash (if I don't mix it up right now). The sentence below
looks like this will not work at all for guix.

> Also there is no difference between some guix ".scm" file and a usual
> guile ".scm" file.

-- 
♥Ⓐ  ng0  | ng0.chaosnet.org

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: guix emacs mode
  2016-10-28 10:19         ` ng0
@ 2016-10-29  9:07           ` Alex Kost
  0 siblings, 0 replies; 7+ messages in thread
From: Alex Kost @ 2016-10-29  9:07 UTC (permalink / raw)
  To: ng0; +Cc: guix-devel

ng0 (2016-10-28 10:19 +0000) wrote:

> Alex Kost <alezost@gmail.com> writes:
>
>> ng0 (2016-10-28 08:30 +0000) wrote:
[...]
>>> Different issue, but somehow related: Could we move the emacs
>>> specific settings into an emacs mode if emacs modes can detect
>>> some common structure or however we specify that the current file
>>> which is edited is guix and not guile/scm alone?
>>
>> Sorry, I don't understand the question.  What does «move the emacs
>> specific settings into an emacs mode» mean?
>
> I don't understand much, well to be honest: nothing, on how modes
> in emacs work. I meant that we maybe could move whatever the
> .dir-locals.el sets into some external modules/files/set if
> possible at all.

Ah, now I see.  The purpose of ".dir-locals.el" is to set some variables
locally for the current project (the contents of the current directory).
I think it doesn't make sense to move dir-locals anywhere, as it is used
to set up emacs (to set fill-column, to disable TABs, etc.) when you
edit guix code from a git checkout.

> It probably works for gentoo .ebuild because
> they have a different file extension than bash, but at their core
> it is bash (if I don't mix it up right now). The sentence below
> looks like this will not work at all for guix.
>
>> Also there is no difference between some guix ".scm" file and a usual
>> guile ".scm" file.

-- 
Alex

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-29  9:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-22 21:31 vim modelines for guix repository ng0
2016-10-23  5:14 ` Efraim Flashner
2016-10-23 16:20   ` ng0
2016-10-28  8:30     ` guix emacs mode (was: Re: vim modelines for guix repository) ng0
2016-10-28  9:47       ` guix emacs mode Alex Kost
2016-10-28 10:19         ` ng0
2016-10-29  9:07           ` Alex Kost

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).