unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Some emacs stuff to activate/deactivate guix profiles
@ 2020-12-17  4:59 pinoaffe
  2020-12-17  8:26 ` zimoun
  2020-12-17  8:31 ` pinoaffe
  0 siblings, 2 replies; 11+ messages in thread
From: pinoaffe @ 2020-12-17  4:59 UTC (permalink / raw)
  To: guix-devel

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

Hi guix!
    
I wrote some elisp that
* maintains a list of available guix profiles
* maintains a list of active guix profiles
* allows the user to modify both of those lists
* provides interactive commands that allow the user to (de)activate profiles
* sets env variables and the emacs search path based on active profiles
I may add the ability to "update" a profile from a manifest.

This allows me to have a profile with, say, reverse engineering tools,
and to (de)activate it whenever I do(nt) need those tools.

Please not that I'm fairly new to all of this emacs stuff, so it may not
be idiomatic or good code.

I've attached the reusable stuff in guix-profiles.el, and my personal
config in init-profiles.el.

Any thoughts?

Blessings,
pinoaffe


[-- Attachment #2: guix-profiles.el --]
[-- Type: application/emacs-lisp, Size: 4061 bytes --]

[-- Attachment #3: init-profiles.el --]
[-- Type: application/emacs-lisp, Size: 1550 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Some emacs stuff to activate/deactivate guix profiles
@ 2020-12-17  8:29 pinoaffe
  2020-12-17  9:32 ` Jan Nieuwenhuizen
  0 siblings, 1 reply; 11+ messages in thread
From: pinoaffe @ 2020-12-17  8:29 UTC (permalink / raw)
  To: guix-devel

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

Hi guix!
    
I wrote some elisp that
* maintains a list of available guix profiles
* maintains a list of active guix profiles
* allows the user to modify both of those lists
* provides interactive commands that allow the user to (de)activate profiles
* sets env variables and the emacs search path based on active profiles
I may add the ability to "update" a profile from a manifest.

This allows me to have a profile with, say, reverse engineering tools,
and to (de)activate it whenever I do(nt) need those tools.

Please not that I'm fairly new to all of this emacs stuff, so it may not
be idiomatic or good code.

I've attached the reusable stuff in guix-profiles.el, and my personal
config in init-profiles.el.

Any thoughts?

Blessings,
pinoaffe


[-- Attachment #2: guix-profiles.el --]
[-- Type: application/emacs-lisp, Size: 4061 bytes --]

[-- Attachment #3: init-profiles.el --]
[-- Type: application/emacs-lisp, Size: 1550 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Some emacs stuff to activate/deactivate guix profiles
@ 2020-12-17  4:57 pinoaffe
  0 siblings, 0 replies; 11+ messages in thread
From: pinoaffe @ 2020-12-17  4:57 UTC (permalink / raw)
  To: guix-devel

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

Hi guix!
    
I wrote some elisp that
* maintains a list of available guix profiles
* maintains a list of active guix profiles
* allows the user to modify both of those lists
* provides interactive commands that allow the user to (de)activate profiles
* sets env variables and the emacs search path based on active profiles
I may add the ability to "update" a profile from a manifest.

This allows me to have a profile with, say, reverse engineering tools,
and to (de)activate it whenever I do(nt) need those tools.

Please not that I'm fairly new to all of this emacs stuff, so it may not
be idiomatic or good code.

I've attached the reusable stuff in guix-profiles.el, and my personal
config in init-profiles.el.

Any thoughts?

Blessings,
pinoaffe


[-- Attachment #2: guix-profiles.el --]
[-- Type: application/emacs-lisp, Size: 4061 bytes --]

[-- Attachment #3: init-profiles.el --]
[-- Type: application/emacs-lisp, Size: 1550 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Some emacs stuff to activate/deactivate guix profiles
@ 2020-12-16 19:43 pinoaffe
  0 siblings, 0 replies; 11+ messages in thread
From: pinoaffe @ 2020-12-16 19:43 UTC (permalink / raw)
  To: guix-devel

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

Hi guix!
    
I wrote some elisp that
* maintains a list of available guix profiles
* maintains a list of active guix profiles
* allows the user to modify both of those lists
* provides interactive commands that allow the user to (de)activate profiles
* sets env variables and the emacs search path based on active profiles
I may add the ability to "update" a profile from a manifest.

This allows me to have a profile with, say, reverse engineering tools,
and to (de)activate it whenever I do(nt) need those tools.

Please not that I'm fairly new to all of this emacs stuff, so it may not
be idiomatic or good code.

I've attached the reusable stuff in guix-profiles.el, and my personal
config in init-profiles.el.

Any thoughts?

Blessings,
pinoaffe


[-- Attachment #2: guix-profiles.el --]
[-- Type: application/emacs-lisp, Size: 4061 bytes --]

[-- Attachment #3: init-profiles.el --]
[-- Type: application/emacs-lisp, Size: 1550 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Some emacs stuff to activate/deactivate guix profiles
@ 2020-12-16 19:43 pinoaffe
  0 siblings, 0 replies; 11+ messages in thread
From: pinoaffe @ 2020-12-16 19:43 UTC (permalink / raw)
  To: guix-devel

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

Hi guix!
    
I wrote some elisp that
* maintains a list of available guix profiles
* maintains a list of active guix profiles
* allows the user to modify both of those lists
* provides interactive commands that allow the user to (de)activate profiles
* sets env variables and the emacs search path based on active profiles
I may add the ability to "update" a profile from a manifest.

This allows me to have a profile with, say, reverse engineering tools,
and to (de)activate it whenever I do(nt) need those tools.

Please not that I'm fairly new to all of this emacs stuff, so it may not
be idiomatic or good code.

I've attached the reusable stuff in guix-profiles.el, and my personal
config in init-profiles.el.

Any thoughts?

Blessings,
pinoaffe


[-- Attachment #2: guix-profiles.el --]
[-- Type: application/emacs-lisp, Size: 4061 bytes --]

[-- Attachment #3: init-profiles.el --]
[-- Type: application/emacs-lisp, Size: 1550 bytes --]

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

end of thread, other threads:[~2020-12-17 14:28 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-17  4:59 Some emacs stuff to activate/deactivate guix profiles pinoaffe
2020-12-17  8:26 ` zimoun
2020-12-17  8:36   ` pinoaffe
2020-12-17  8:52     ` zimoun
2020-12-17  8:31 ` pinoaffe
  -- strict thread matches above, loose matches on Subject: below --
2020-12-17  8:29 pinoaffe
2020-12-17  9:32 ` Jan Nieuwenhuizen
2020-12-17 14:28   ` pinoaffe
2020-12-17  4:57 pinoaffe
2020-12-16 19:43 pinoaffe
2020-12-16 19:43 pinoaffe

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).