* 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 --]
(setq inhibit-startup-screen t)
;(show-paren-mode t) ;; enable show paren mode
;(setq show-paren-style 'expression) ;; highlight whole expression
(show-paren-mode 1)
(setq show-paren-delay 0)
(setq show-paren-style 'expression)
(require 'paren)
(set-face-background 'show-paren-match "#efefef")
(autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t)
(add-hook 'emacs-lisp-mode-hook #'enable-paredit-mode)
(add-hook 'eval-expression-minibuffer-setup-hook #'enable-paredit-mode)
(add-hook 'ielm-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-mode-hook #'enable-paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'enable-paredit-mode)
(add-hook 'scheme-mode-hook #'enable-paredit-mode)
^ permalink raw reply [flat|nested] 6+ messages in thread