unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to configure emacs for editing config.scm again?
@ 2020-11-29 13:16 znavko--- via
  2020-11-29 21:36 ` zimoun
  2020-12-03 18:55 ` znavko
  0 siblings, 2 replies; 6+ messages in thread
From: znavko--- via @ 2020-11-29 13:16 UTC (permalink / raw)
  To: help-guix

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

Hello! I have lost my way of search how to configure emacs
for editing config.scm with Scheme highlight mode and parentheses completion.

1. This my instruction does not work: [1]

The mistake is that after start emacs it shows white screen and
requires Scheme implementation (attach 1).

I do not know what to type for this requirement (but i am not familiar with
keys) i just press C-x C-c.
2. Another advice also does not work [2]

# cat ~/.emacs

(add-hook 'scheme-mode-hook 'rainbow-delimiters-mode)
(add-hook 'emacs-lisp-mode-hook 'rainbow-delimiters-mode)
It does not highlight parentheses and does not complete code (attach 2)
3. This instruction to do "M-x run-geiser RET" [3]
does not work too (attach 3).
I have these packages:

# guix package -I | grep ema | cut -f1
emacs
emacs-paredit
emacs-geiser
emacs-scheme-complete
emacs-rainbow-delimiters
[1] https://lists.gnu.org/archive/html/help-guix/2019-04/msg00061.html
[2] https://lists.gnu.org/archive/html/help-guix/2018-11/msg00237.html
[3] https://ebzzry.io/en/emacs-scheme/

[-- Attachment #2: emacs-start-scheme-requirements.png --]
[-- Type: image/png, Size: 25171 bytes --]

[-- Attachment #3: emacs-rainbow-parens.png --]
[-- Type: image/png, Size: 115969 bytes --]

[-- Attachment #4: run-geiser.png --]
[-- Type: image/png, Size: 92972 bytes --]

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

* Re: How to configure emacs for editing config.scm again?
  2020-11-29 13:16 How to configure emacs for editing config.scm again? znavko--- via
@ 2020-11-29 21:36 ` zimoun
  2020-12-03 18:55 ` znavko
  1 sibling, 0 replies; 6+ messages in thread
From: zimoun @ 2020-11-29 21:36 UTC (permalink / raw)
  To: znavko, help-guix

Hi,

On Sun, 29 Nov 2020 at 13:16, znavko--- via <help-guix@gnu.org> wrote:
> Hello! I have lost my way of search how to configure emacs
> for editing config.scm with Scheme highlight mode and parentheses
> completion.

I do not know what you want exactly.

These lines fix “M-x run-geiser” using Guile as default.  And highlight
some Scheme code with Paredit as parenthesis  tools.

--8<---------------cut here---------------start------------->8---
(setq geiser-active-implementations '(guile))
(with-eval-after-load 'scheme
  (add-hook 'scheme-mode-hook 'enable-paredit-mode))
--8<---------------cut here---------------end--------------->8---

Hope that helps,
simon



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

* Re: How to configure emacs for editing config.scm again?
  2020-11-29 13:16 How to configure emacs for editing config.scm again? znavko--- via
  2020-11-29 21:36 ` zimoun
@ 2020-12-03 18:55 ` znavko
  2020-12-03 19:40   ` Jérémy Korwin-Zmijowski
                     ` (2 more replies)
  1 sibling, 3 replies; 6+ messages in thread
From: znavko @ 2020-12-03 18:55 UTC (permalink / raw)
  To: zimoun, help-guix

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

Thank you!

I want emacs brushes my code making indents and auto-completing it closing parentheses.
It does not do nothing now. Only highlights it.

Could you please tell how to force emacs work deeply with my code :)
for it becomes wonderful for further copy-pasting here in Guix Help :)) ??


November 29, 2020 9:43 PM, "zimoun" <zimon.toutoune@gmail.com> wrote:

> Hi,
> 
> On Sun, 29 Nov 2020 at 13:16, znavko--- via <help-guix@gnu.org> wrote:
> 
>> Hello! I have lost my way of search how to configure emacs
>> for editing config.scm with Scheme highlight mode and parentheses
>> completion.
> 
> I do not know what you want exactly.
> 
> These lines fix “M-x run-geiser” using Guile as default. And highlight
> some Scheme code with Paredit as parenthesis tools.
> 
> --8<---------------cut here---------------start------------->8---
> (setq geiser-active-implementations '(guile))
> (with-eval-after-load 'scheme
> (add-hook 'scheme-mode-hook 'enable-paredit-mode))
> --8<---------------cut here---------------end--------------->8---
> 
> Hope that helps,
> simon

[-- Attachment #2: emacs-no-geiser-parens.png --]
[-- Type: image/png, Size: 144375 bytes --]

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

* Re: How to configure emacs for editing config.scm again?
  2020-12-03 18:55 ` znavko
@ 2020-12-03 19:40   ` Jérémy Korwin-Zmijowski
  2020-12-10 15:12   ` zimoun
  2021-01-01 21:36   ` znavko
  2 siblings, 0 replies; 6+ messages in thread
From: Jérémy Korwin-Zmijowski @ 2020-12-03 19:40 UTC (permalink / raw)
  To: znavko, zimoun, help-guix

Maybe the Paredit extension can ne what you are looking for !

Jérémy

Le 3 décembre 2020 19:55:58 GMT+01:00, znavko@disroot.org a écrit :
>Thank you!
>
>I want emacs brushes my code making indents and auto-completing it closing parentheses.
>It does not do nothing now. Only highlights it.
>
>Could you please tell how to force emacs work deeply with my code :)
>for it becomes wonderful for further copy-pasting here in Guix Help :)) ??
>
>
>November 29, 2020 9:43 PM, "zimoun" <zimon.toutoune@gmail.com> wrote:
>
>> Hi,
>> 
>> On Sun, 29 Nov 2020 at 13:16, znavko--- via <help-guix@gnu.org> wrote:
>> 
>>> Hello! I have lost my way of search how to configure emacs
>>> for editing config.scm with Scheme highlight mode and parentheses
>>> completion.
>> 
>> I do not know what you want exactly.
>> 
>> These lines fix “M-x run-geiser” using Guile as default. And highlight
>> some Scheme code with Paredit as parenthesis tools.
>> 
>> --8<---------------cut here---------------start------------->8---
>> (setq geiser-active-implementations '(guile))
>> (with-eval-after-load 'scheme
>> (add-hook 'scheme-mode-hook 'enable-paredit-mode))
>> --8<---------------cut here---------------end--------------->8---
>> 
>> Hope that helps,
>> simon

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

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

* Re: How to configure emacs for editing config.scm again?
  2020-12-03 18:55 ` znavko
  2020-12-03 19:40   ` Jérémy Korwin-Zmijowski
@ 2020-12-10 15:12   ` zimoun
  2021-01-01 21:36   ` znavko
  2 siblings, 0 replies; 6+ messages in thread
From: zimoun @ 2020-12-10 15:12 UTC (permalink / raw)
  To: znavko, help-guix

Hi,

On Thu, 03 Dec 2020 at 18:55, znavko@disroot.org wrote:

> I want emacs brushes my code making indents and auto-completing it closing parentheses.
> It does not do nothing now. Only highlights it.
>
> Could you please tell how to force emacs work deeply with my code :)
> for it becomes wonderful for further copy-pasting here in Guix Help :)) ??

Maybe you could give a look at the experimental package guile-studio.
Maybe it is the kind of out-of-the-box setup you want.  I do not know.

I am not convinced that a copy/pasting Emacs setup is the right
direction, since the Emacs philosophy is the very opposite: make the
tool corresponding to your own needs.


HTH,
simon


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

* Re: How to configure emacs for editing config.scm again?
  2020-12-03 18:55 ` znavko
  2020-12-03 19:40   ` Jérémy Korwin-Zmijowski
  2020-12-10 15:12   ` zimoun
@ 2021-01-01 21:36   ` znavko
  2 siblings, 0 replies; 6+ messages in thread
From: znavko @ 2021-01-01 21:36 UTC (permalink / raw)
  To: zimoun, help-guix

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

Hi! guile-studio has two windows with guile command-line shell, 
that is too much for my tiny wish.

I finally made config with two things I wished:
1) auto parentheses completion
2) highlight parentheses.

When the first task was not so difficult, as instructions here 
were exact:
https://www.emacswiki.org/emacs/ParEdit

For guix I installed emacs-paredit:

# guix install emacs-paredit

and added some lines into /root/.emacs

(Want to note that my /root/.emacs.d/init.el did not do
any sense I do not know its features in guix, need always 
to use ~/.emacs)

Then the solution of the second task laid through 
ugly page, where everything not works at all!!
https://www.emacswiki.org/emacs/HighlightParentheses

"highlight-parentheses is part of ELPA that goes with
emacs out of the box since 24-th version" said there.
Not works with the error that highlight-parentheses-mode is unknown.

Also I downloaded highlight-parentheses.el from the link on that page 
and tried to include it into .emacs. "Not for you in this life!" was the
true main idea of all those recommendations.

But in happy end I found "Show Paren Mode":
https://www.emacswiki.org/emacs/ShowParenMode
that works nice with only lines in my .emacs and also some color editing.

I attach my .emacs
# cp ~/.emacs /home/bob/znavko-.emacs

This line:

(setq show-paren-style 'expression)

highlights the whole expression with grey color:

(set-face-background 'show-paren-match "#efefef")

I do that just for editing my system's config.scm
for experiments with sudo. 
I'd wish "Perfect Installation" section
in the Guix Manual includes more about emacs config.

Thanks.


December 10, 2020 3:19 PM, "zimoun" <zimon.toutoune@gmail.com> wrote:

> Hi,
> 
> On Thu, 03 Dec 2020 at 18:55, znavko@disroot.org wrote:
> 
>> I want emacs brushes my code making indents and auto-completing it closing parentheses.
>> It does not do nothing now. Only highlights it.
>> 
>> Could you please tell how to force emacs work deeply with my code :)
>> for it becomes wonderful for further copy-pasting here in Guix Help :)) ??
> 
> Maybe you could give a look at the experimental package guile-studio.
> Maybe it is the kind of out-of-the-box setup you want. I do not know.
> 
> I am not convinced that a copy/pasting Emacs setup is the right
> direction, since the Emacs philosophy is the very opposite: make the
> tool corresponding to your own needs.
> 
> HTH,
> simon

[-- Attachment #2: znavko-emacs-show-paren-mode.jpg --]
[-- Type: image/jpeg, Size: 186508 bytes --]

[-- Attachment #3: znavko-.emacs --]
[-- Type: application/octet-stream, Size: 828 bytes --]

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

end of thread, other threads:[~2021-01-01 21:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-29 13:16 How to configure emacs for editing config.scm again? znavko--- via
2020-11-29 21:36 ` zimoun
2020-12-03 18:55 ` znavko
2020-12-03 19:40   ` Jérémy Korwin-Zmijowski
2020-12-10 15:12   ` zimoun
2021-01-01 21:36   ` znavko

unofficial mirror of help-guix@gnu.org 

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/guix-user/0 guix-user/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 guix-user guix-user/ https://yhetil.org/guix-user \
		help-guix@gnu.org
	public-inbox-index guix-user

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.gnu.guix.user
	nntp://news.gmane.io/gmane.comp.gnu.guix.user


AGPL code for this site: git clone http://ou63pmih66umazou.onion/public-inbox.git