unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* How to use emacs-tramp ?
@ 2021-01-22 21:40 znavko--- via
  2021-01-22 22:44 ` Nicolas Goaziou
  2021-01-22 23:43 ` znavko
  0 siblings, 2 replies; 3+ messages in thread
From: znavko--- via @ 2021-01-22 21:40 UTC (permalink / raw)
  To: help-guix

Hello! i wish transparently edit php files on remote server with emacs.
i've installed emacs-tramp with 'guix install emacs-tramp'
and required it and configured it with lines in
~/.emacs as desribed here:
https://www.gnu.org/software/tramp/#Default-Host

But when I press C-x C-f
and type '-::' and then save this file
emacs just says: "Wrote /home/bob/-::'
Please, why tramp does not work for me?
Can you share workable config?
$ cat .emacs
;emacs-php-mode
(add-hook 'php-mode-hook 'php-enable-default-coding-style)

;emacs-tramp remote files via ssh
(require 'tramp)
(custom-set-variables
 '(tramp-default-method "ssh")
 '(tramp-default-user "znavko")
 '(tramp-default-host "99.00.99.00#78500"))
;; BasicCustomization
(setq inhibit-startup-screen t) ;; disable welcome message
(global-linum-mode t) ;; enable line numbers globally
(setq linum-format "%4d u2502") ;; format line number spacing

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

* Re: How to use emacs-tramp ?
  2021-01-22 21:40 How to use emacs-tramp ? znavko--- via
@ 2021-01-22 22:44 ` Nicolas Goaziou
  2021-01-22 23:43 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2021-01-22 22:44 UTC (permalink / raw)
  To: znavko--- via

Hello,

znavko--- via <help-guix@gnu.org> writes:

> Hello! i wish transparently edit php files on remote server with emacs.
> i've installed emacs-tramp with 'guix install emacs-tramp'
> and required it and configured it with lines in
> ~/.emacs as desribed here:
> https://www.gnu.org/software/tramp/#Default-Host
>
> But when I press C-x C-f
> and type '-::' and then save this file
> emacs just says: "Wrote /home/bob/-::'

Shouldn't you type "/" first, i.e., '/-::' ?

Regards,
-- 
Nicolas Goaziou


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

* Re: How to use emacs-tramp ?
  2021-01-22 21:40 How to use emacs-tramp ? znavko--- via
  2021-01-22 22:44 ` Nicolas Goaziou
@ 2021-01-22 23:43 ` znavko
  1 sibling, 0 replies; 3+ messages in thread
From: znavko @ 2021-01-22 23:43 UTC (permalink / raw)
  To: Nicolas Goaziou, znavko--- via

Yes! Thank you very much, Nicolas!

January 22, 2021 10:44 PM, "Nicolas Goaziou" <mail@nicolasgoaziou.fr> wrote:

> Hello,
> 
> znavko--- via <help-guix@gnu.org> writes:
> 
>> Hello! i wish transparently edit php files on remote server with emacs.
>> i've installed emacs-tramp with 'guix install emacs-tramp'
>> and required it and configured it with lines in
>> ~/.emacs as desribed here:
>> https://www.gnu.org/software/tramp/#Default-Host
>> 
>> But when I press C-x C-f
>> and type '-::' and then save this file
>> emacs just says: "Wrote /home/bob/-::'
> 
> Shouldn't you type "/" first, i.e., '/-::' ?
> 
> Regards,
> --
> Nicolas Goaziou


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

end of thread, other threads:[~2021-01-22 23:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-22 21:40 How to use emacs-tramp ? znavko--- via
2021-01-22 22:44 ` Nicolas Goaziou
2021-01-22 23:43 ` znavko

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