unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christian Miller <christian.miller@dadoes.de>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: Problems with Emacs vterm
Date: Mon, 15 Jan 2024 22:45:28 +0100	[thread overview]
Message-ID: <87y1cqb79j.fsf@dadoes.de> (raw)
In-Reply-To: <87o7dndj2s.fsf@gmail.com> (message from Oleg Pykhalov on Mon, 15 Jan 2024 12:47:23 +0300)

Hello Oleg,

> Both work on my Guix System.  The ‘2.’ works both for a Guix and non
> Guix systems.

Interesting. (directory-tracking) It never did work for me since
several months.  I also created a VM to be sure that it is not my
Emacs config.  Does not work in the VM for me, too.

This is how I tested it.

Use the following file as preset:

--8<---------------cut here---------------start------------->8---
;; This is an operating system configuration generated
;; by the graphical installer.
;;
;; Once installation is complete, you can learn and modify
;; this file to tweak the system configuration, and pass it
;; to the 'guix system reconfigure' command to effect your
;; changes.


;; Indicate which modules to import to access the variables
;; used in this configuration.
(use-modules (gnu))
(use-service-modules desktop networking ssh xorg spice)
(use-package-modules certs gnome)

(operating-system
  (locale "en_US.utf8")
  (timezone "Europe/Berlin")
  (keyboard-layout (keyboard-layout "de"))
  (host-name "gnu")

  ;; The list of user accounts ('root' is implicit).
  (users (cons* (user-account
                  (name "test")
                  (comment "Test")
                  (password (crypt "pw" "$6$abc"))
                  (group "users")
                  (home-directory "/home/test")
                  (supplementary-groups '("wheel" "netdev" "audio" "video")))
                %base-user-accounts))

  ;; Packages installed system-wide.  Users can also install packages
  ;; under their own account: use 'guix search KEYWORD' to search
  ;; for packages and 'guix install PACKAGE' to install a package.
  (packages (append (list (specification->package "nss-certs")
                          (specification->package "emacs")
                          (specification->package "emacs-vterm")) %base-packages))

  ;; Below is the list of system services.  To search for available
  ;; services, run 'guix system search KEYWORD' in a terminal.
  (services
   (append (list (service gnome-desktop-service-type)

                 (service spice-vdagent-service-type)

                 (set-xorg-configuration
                  (xorg-configuration
                   (keyboard-layout keyboard-layout))))
           
	   (modify-services %desktop-services
                            (gdm-service-type config =>
                                              (gdm-configuration
                                               (inherit config)
                                               (auto-login? #t)
                                               (default-user "test"))))))
  
  ;; Allow resolution of ".local" host names with mDNS
  (name-service-switch %mdns-host-lookup-nss)

  ;; Use sudo without password
  (sudoers-file (plain-file "etc-sudoers-config"
                            "root ALL=(ALL) ALL
%wheel ALL=(ALL) ALL
test ALL=(ALL) NOPASSWD: ALL"))

  (bootloader
   (bootloader-configuration
    (bootloader grub-bootloader)
    (targets '("/dev/vda"))
    (terminal-outputs '(console))))

  (file-systems (cons (file-system
                       (mount-point "/")
                       (device "/dev/vda1")
                       (type "ext4"))
                      %base-file-systems)))
--8<---------------cut here---------------end--------------->8---

$(guix system vm <file>.scm) -m 4096 -smp 2

(in the VM)

1. Start Emacs
2. M-x vterm
3. cd Downloads
4. C-x C-f (find-file): It starts with "~/" instead of the expected
   "~/Downloads/"


--8<---------------cut here---------------start------------->8---
cm@gnu ~$ cat /etc/os-release 
NAME="Guix System"
ID=guix
PRETTY_NAME="Guix System"
LOGO=guix-icon
HOME_URL="https://guix.gnu.org"
DOCUMENTATION_URL="https://guix.gnu.org/en/manual"
SUPPORT_URL="https://guix.gnu.org/en/help"
BUG_REPORT_URL="https://lists.gnu.org/mailman/listinfo/bug-guix"

cm@gnu ~$ guix describe
Generation 6    Jan 10 2024 19:26:00    (current)
  guix c1fda6c
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: c1fda6cf61d4044d65c694cd309ca88c6b1ed5b7
--8<---------------cut here---------------end--------------->8---

Yes, I use Bash for local and remote.  I currently use GNU Guix System
on revision c1fda6cf61d4044d65c694cd309ca88c6b1ed5b7.

-- 
Christian Miller


      reply	other threads:[~2024-01-15 21:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-14 15:21 Problems with Emacs vterm Christian Miller
2024-01-15  9:47 ` Oleg Pykhalov
2024-01-15 21:45   ` Christian Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1cqb79j.fsf@dadoes.de \
    --to=christian.miller@dadoes.de \
    --cc=go.wigust@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).