all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Guile text editor
@ 2018-11-28 10:22 znavko
  2018-11-28 10:59 ` Pierre Neidhardt
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: znavko @ 2018-11-28 10:22 UTC (permalink / raw)
  To: Help Guix

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

Hello, developers! Parentheses in config.scm obstruct reading. Gedit does not highlight them, geany does not exists in guix, emacs highlights, but it is buggie: when I press c-x u many times this causes segmentation fault and it crushes.

Which text editor from guixsd repository can highlight guile parentheses?

[-- Attachment #2: Type: text/html, Size: 486 bytes --]

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

* Re: Guile text editor
  2018-11-28 10:22 Guile text editor znavko
@ 2018-11-28 10:59 ` Pierre Neidhardt
  2018-11-28 11:08   ` Efraim Flashner
  2018-11-28 12:34 ` Catonano
  2018-11-28 12:45 ` hub.lombard
  2 siblings, 1 reply; 12+ messages in thread
From: Pierre Neidhardt @ 2018-11-28 10:59 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

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

I suspect most Guix developers use Emacs with the Geiser mode for enhanced
Scheme integration.

A segfault on "C-x u"? (you mean undo?)  Very strange.  Can you reproduce a
specific recipe?  Is it just in Guile files?  What minor modes are you running?
Is it terminal or graphical Emacs?

Note that if you have a US QWERTY layout, you might prefer "C-/" to undo.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* Re: Guile text editor
  2018-11-28 10:59 ` Pierre Neidhardt
@ 2018-11-28 11:08   ` Efraim Flashner
  2018-11-28 12:00     ` znavko
  2018-11-28 17:22     ` Ludovic Courtès
  0 siblings, 2 replies; 12+ messages in thread
From: Efraim Flashner @ 2018-11-28 11:08 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: Help Guix

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

On Wed, Nov 28, 2018 at 11:59:15AM +0100, Pierre Neidhardt wrote:
> I suspect most Guix developers use Emacs with the Geiser mode for enhanced
> Scheme integration.
> 
> A segfault on "C-x u"? (you mean undo?)  Very strange.  Can you reproduce a
> specific recipe?  Is it just in Guile files?  What minor modes are you running?
> Is it terminal or graphical Emacs?
> 
> Note that if you have a US QWERTY layout, you might prefer "C-/" to undo.
> 

I use vim with no highlighting. We also have edi as a code editor. I
haven't tried it out too much though, or with guix.


-- 
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: 833 bytes --]

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

* Re: Guile text editor
  2018-11-28 11:08   ` Efraim Flashner
@ 2018-11-28 12:00     ` znavko
  2018-11-28 12:15       ` Pierre Neidhardt
  2018-11-28 17:22     ` Ludovic Courtès
  1 sibling, 1 reply; 12+ messages in thread
From: znavko @ 2018-11-28 12:00 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: Help Guix

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


I've installed `guix package -i emacs-geiser` and open `emacs /etc/config.scm`
Then 'M-x run-geiser' and it displayed in a half-window scree scheme. Here pic: http://0x0.st/s004.png
Video shows much better code editing: https://www.youtube.com/watch?v=T6jGBWfqafc <https://www.youtube.com/watch?v=T6jGBWfqafc>
There parentheses are colored and auto-complementing.
But I cannot find instruction how to configure that in qwant.

One more: when I've installed guile-emacs, emacs was starting for 30 seconds. I deleted guile-emacs, and now emacsstarts quickly (1-2 seconds). But I think it works slower than geany. I need info how disable unnecessary stuff.



Nov 28, 2018, 2:08 PM by efraim@flashner.co.il:

> On Wed, Nov 28, 2018 at 11:59:15AM +0100, Pierre Neidhardt wrote:
>
>> I suspect most Guix developers use Emacs with the Geiser mode for enhanced
>> Scheme integration.
>>
>> A segfault on "C-x u"? (you mean undo?)  Very strange.  Can you reproduce a
>> specific recipe?  Is it just in Guile files?  What minor modes are you running?
>> Is it terminal or graphical Emacs?
>>
>> Note that if you have a US QWERTY layout, you might prefer "C-/" to undo.
>>
>
> I use vim with no highlighting. We also have edi as a code editor. I
> haven't tried it out too much though, or with guix.
>
>
> -- 
> Efraim Flashner   <> efraim@flashner.co.il <mailto: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: Type: text/html, Size: 2368 bytes --]

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

* Re: Guile text editor
  2018-11-28 12:00     ` znavko
@ 2018-11-28 12:15       ` Pierre Neidhardt
  0 siblings, 0 replies; 12+ messages in thread
From: Pierre Neidhardt @ 2018-11-28 12:15 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

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


> One more: when I've installed guile-emacs, emacs was starting for 30 seconds. I
> deleted guile-emacs, and now emacsstarts quickly (1-2 seconds). But I think it
> works slower than geany. I need info how disable unnecessary stuff.

How fast does Emacs start when run as `emacs -Q`?
You can check the startup time by running `M-x emacs-init-time`.  (`M-x` could mean
Alt-x on your keyboard).

Do you have an ~/.emacs.d folder or a ~/.emacs file?  You might want to inspect
those.

You can also install emacs-esup, then run `M-x esup` to profile your startup
times.

Finally, vanilla Emacs is very fast, it should not lag.
Can you tell a difference with or without Geiser?

Not that if you only want basic Scheme support, Emacs provides it out of the
box, without Geiser.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

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

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

* Re: Guile text editor
  2018-11-28 10:22 Guile text editor znavko
  2018-11-28 10:59 ` Pierre Neidhardt
@ 2018-11-28 12:34 ` Catonano
  2018-11-28 16:12   ` znavko
  2018-11-28 12:45 ` hub.lombard
  2 siblings, 1 reply; 12+ messages in thread
From: Catonano @ 2018-11-28 12:34 UTC (permalink / raw)
  To: znavko; +Cc: help-guix

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

Il giorno mer 28 nov 2018 alle ore 11:47 <znavko@tutanota.com> ha scritto:

> Hello, developers! Parentheses in config.scm obstruct reading. Gedit does
> not highlight them, geany does not exists in guix, emacs highlights, but it
> is buggie: when I press c-x u many times this causes segmentation fault and
> it crushes.
>

I used Emacs with some mode for parens highlighting

Now that I'm on Xubuntu (and when I was on Fedora) I used Gedit with a
setting to highlight parenses

Maybe it can be compiled in such a way to offer such setting in its
settings window ?

I don't know

This is a shot of the Gedit settings window on Xubuntu, see the last
checkbox on the bottom ?
https://imgur.com/a/LOcDIhd



> Which text editor from guixsd repository can highlight guile parentheses?
>

[-- Attachment #2: Type: text/html, Size: 1505 bytes --]

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

* Re: Guile text editor
  2018-11-28 10:22 Guile text editor znavko
  2018-11-28 10:59 ` Pierre Neidhardt
  2018-11-28 12:34 ` Catonano
@ 2018-11-28 12:45 ` hub.lombard
  2 siblings, 0 replies; 12+ messages in thread
From: hub.lombard @ 2018-11-28 12:45 UTC (permalink / raw)
  To: znavko; +Cc: Help Guix

Hello znavko,

Weird, I use Gedit and it's OK for parentheses in 'config.scm'. Maybe remove and re-install Gedit?

----- Mail original -----
De: znavko@tutanota.com
À: "Help Guix" <help-guix@gnu.org>
Envoyé: Mercredi 28 Novembre 2018 11:22:41
Objet: Guile text editor


Hello, developers! Parentheses in config.scm obstruct reading. Gedit does not highlight them, geany does not exists in guix, emacs highlights, but it is buggie: when I press c-x u many times this causes segmentation fault and it crushes. 



Which text editor from guixsd repository can highlight guile parentheses? 

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

* Re: Guile text editor
  2018-11-28 12:34 ` Catonano
@ 2018-11-28 16:12   ` znavko
  2018-11-29 12:31     ` Joshua Branson
  2018-12-02  4:28     ` Maxim Cournoyer
  0 siblings, 2 replies; 12+ messages in thread
From: znavko @ 2018-11-28 16:12 UTC (permalink / raw)
  To: Catonano; +Cc: help-guix

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

Thank you, Catonano! There are such options in Gedit!

Comparing with that highlighting in emacs (left) http://0x0.st/s004.png <http://0x0.st/s004.png>
this gedit highlighting is so poor.

I need info how to activate parentheses highlighting in Emacs, and may be configure exactly as in my pic left side.

Nov 28, 2018, 3:34 PM by catonano@gmail.com:

>
> I used Emacs with some mode for parens highlighting
>
> Now that I'm on Xubuntu (and when I was on Fedora) I used Gedit with a setting to highlight parenses
>
> Maybe it can be compiled in such a way to offer such setting in its settings window ?
>
> I don't know
>
> This is a shot of the Gedit settings window on Xubuntu, see the last checkbox on the bottom ?
> https://imgur.com/a/LOcDIhd <https://imgur.com/a/LOcDIhd>
>
>
>
>>
>>
>> Which text editor from guixsd repository can highlight guile parentheses?
>>


[-- Attachment #2: Type: text/html, Size: 1739 bytes --]

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

* Re: Guile text editor
  2018-11-28 11:08   ` Efraim Flashner
  2018-11-28 12:00     ` znavko
@ 2018-11-28 17:22     ` Ludovic Courtès
  2018-11-28 17:54       ` Efraim Flashner
  1 sibling, 1 reply; 12+ messages in thread
From: Ludovic Courtès @ 2018-11-28 17:22 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: Help Guix

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

> On Wed, Nov 28, 2018 at 11:59:15AM +0100, Pierre Neidhardt wrote:
>> I suspect most Guix developers use Emacs with the Geiser mode for enhanced
>> Scheme integration.
>> 
>> A segfault on "C-x u"? (you mean undo?)  Very strange.  Can you reproduce a
>> specific recipe?  Is it just in Guile files?  What minor modes are you running?
>> Is it terminal or graphical Emacs?
>> 
>> Note that if you have a US QWERTY layout, you might prefer "C-/" to undo.
>> 
>
> I use vim with no highlighting. We also have edi as a code editor. I
> haven't tried it out too much though, or with guix.

I believe Vim provides syntax highlighting and autoidenting for Scheme,
as well as paredit.vim:

  https://www.gnu.org/software/guix/manual/en/html_node/Formatting-Code.html

Ludo’.

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

* Re: Guile text editor
  2018-11-28 17:22     ` Ludovic Courtès
@ 2018-11-28 17:54       ` Efraim Flashner
  0 siblings, 0 replies; 12+ messages in thread
From: Efraim Flashner @ 2018-11-28 17:54 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Help Guix

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

On Wed, Nov 28, 2018 at 06:22:52PM +0100, Ludovic Courtès wrote:
> Efraim Flashner <efraim@flashner.co.il> skribis:
> 
> > On Wed, Nov 28, 2018 at 11:59:15AM +0100, Pierre Neidhardt wrote:
> >> I suspect most Guix developers use Emacs with the Geiser mode for enhanced
> >> Scheme integration.
> >> 
> >> A segfault on "C-x u"? (you mean undo?)  Very strange.  Can you reproduce a
> >> specific recipe?  Is it just in Guile files?  What minor modes are you running?
> >> Is it terminal or graphical Emacs?
> >> 
> >> Note that if you have a US QWERTY layout, you might prefer "C-/" to undo.
> >> 
> >
> > I use vim with no highlighting. We also have edi as a code editor. I
> > haven't tried it out too much though, or with guix.
> 
> I believe Vim provides syntax highlighting and autoidenting for Scheme,
> as well as paredit.vim:
> 
>   https://www.gnu.org/software/guix/manual/en/html_node/Formatting-Code.html

vim does have a scheme module, in
$out/share/vim/vim81/syntax/scheme.vim, and guix's code base gets
recongized as scheme code. I meant that when I have my cursor over a
parenthesis it highlights the other side, but that they're not color
coded or something.

The indenting does work fairly well with the default scheme.vim that
learning vimscript for the purpose of creating a guix.vim has been
backburnered for more than 2 years.

-- 
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: 833 bytes --]

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

* Re: Guile text editor
  2018-11-28 16:12   ` znavko
@ 2018-11-29 12:31     ` Joshua Branson
  2018-12-02  4:28     ` Maxim Cournoyer
  1 sibling, 0 replies; 12+ messages in thread
From: Joshua Branson @ 2018-11-29 12:31 UTC (permalink / raw)
  To: help-guix

<znavko@tutanota.com> writes:

> Thank you, Catonano! There are such options in Gedit!
>
> Comparing with that highlighting in emacs (left) http://0x0.st/s004.png
> this gedit highlighting is so poor.
>
> I need info how to activate parentheses highlighting in Emacs, and may be configure exactly as in my pic left side.

You probably want guix package -i emacs-rainbow-delimiters.

(add-hook 'scheme-mode-hook 'rainbow-delimiters-mode)
(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode)

Also you probably don't want to use the standard emacs theme.  It's
ugly.  You should try zenburn-theme.  

M-x list-packages RET

Install zenburn-theme.  (It's one of the better ones https://github.com/bbatsov/zenburn-emacs).

Tweaking your Emacs takes a lifetime.  :)

You might also want to try an Emacs distribution:

- Spacemacs is beautiful!  http://spacemacs.org/
- prelude https://github.com/bbatsov/prelude
- Graphene https://github.com/rdallasgray/graphene
- Emacs Bootstrap http://emacs-bootstrap.com/
- Frontmacs https://github.com/thefrontside/frontmacs
- Steve Purcell's config https://github.com/purcell/emacs.d
  I personally cloned his a long time ago.

>
> Nov 28, 2018, 3:34 PM by catonano@gmail.com:
>
>  I used Emacs with some mode for parens highlighting
>
>  Now that I'm on Xubuntu (and when I was on Fedora) I used Gedit with a setting to highlight parenses
>
>  Maybe it can be compiled in such a way to offer such setting in its settings window ?
>
>  I don't know
>
>  This is a shot of the Gedit settings window on Xubuntu, see the last checkbox on the bottom ?
>  https://imgur.com/a/LOcDIhd
>
>  Which text editor from guixsd repository can highlight guile parentheses?

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

* Re: Guile text editor
  2018-11-28 16:12   ` znavko
  2018-11-29 12:31     ` Joshua Branson
@ 2018-12-02  4:28     ` Maxim Cournoyer
  1 sibling, 0 replies; 12+ messages in thread
From: Maxim Cournoyer @ 2018-12-02  4:28 UTC (permalink / raw)
  To: znavko; +Cc: help-guix

Hello,

<znavko@tutanota.com> writes:

[...]

> I need info how to activate parentheses highlighting in Emacs, and may be configure exactly as in my pic left side.

Slap (show-paren-mode) in your ~/.emacs :-). You'll also want
(electric-pair-mode). Also try paredit, it makes editing Lisp/Scheme much
more pleasant.

HTH,

Maxim

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

end of thread, other threads:[~2018-12-02  4:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-28 10:22 Guile text editor znavko
2018-11-28 10:59 ` Pierre Neidhardt
2018-11-28 11:08   ` Efraim Flashner
2018-11-28 12:00     ` znavko
2018-11-28 12:15       ` Pierre Neidhardt
2018-11-28 17:22     ` Ludovic Courtès
2018-11-28 17:54       ` Efraim Flashner
2018-11-28 12:34 ` Catonano
2018-11-28 16:12   ` znavko
2018-11-29 12:31     ` Joshua Branson
2018-12-02  4:28     ` Maxim Cournoyer
2018-11-28 12:45 ` hub.lombard

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.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.