Skip to content
Snippets Groups Projects
Commit 572939a4 authored by Michael Hauspie's avatar Michael Hauspie
Browse files

Add a Tramp Theme so that the remote host name is displayed on the modeline

parent 6fce913c
No related branches found
No related tags found
No related merge requests found
......@@ -92,7 +92,8 @@ ensure package by default
(setq use-package-always-ensure t)
#+END_SRC
I like to keep things up to date, so I use =auto-package-update=
We can keep things up to date, using =auto-package-update=, but it
tends to make emacs very slow to start
#+BEGIN_SRC emacs-lisp
;; (use-package auto-package-update
......@@ -305,8 +306,12 @@ Use Fira Code with ligature
(global-fira-code-mode)
(setq fira-code-mode-enable-hex-literal nil)
)
(add-to-list 'default-frame-alist '(font . "Fira Code-10" ))
(set-face-attribute 'default t :font "Fira Code-10" )
#+end_src
#+RESULTS:
** Modeline
......@@ -352,6 +357,42 @@ and loaded.
)
#+end_src
*** TRAMP configuration for remote editing
Tramp is a mode that allows emacs to edit file remotely (over ssh) or
even as =sudo= (even combining both, effectively editing a file on a
remote machine as root while connecting to the remote machine using
ssh as an unpriviledged user)
To open a file located on a remote machine, simply open the file
=/ssh:user@host:path/to/the/file=
To =sudo= open a local file : =/sudo::/path/to/the/file=.
Combining both : =/ssh:user@host|sudo::/path/to/the/file=.
There is no real configuration need for my tramp usage, however, I
would like to display on the mode line on which host I am editing (one
of the many reason is that I find myself editing the same file on
different servers on many occasions). By default, a =@= symbol is
displayed on the mode line when editing remote, but not the server
hostname. It requires mousing hover the =@= which is... impractical at
the very best.
For this, I use the =tramp-theme= package that does what I want.
#+begin_src emacs-lisp
(use-package tramp-theme
:ensure t
:config
(load-theme 'tramp t)
)
#+end_src
#+RESULTS:
: t
** Shortcut dynamic help buffer
......@@ -620,10 +661,11 @@ using bootstrap template.
(require 'ox-md)
;; some HTML slide export engines
(use-package ox-html5slide)
(use-package ox-impress-js)
(use-package ox-reveal)
(use-package ox-spectacle )
;; Don't really use them actually so commented out
;; (use-package ox-html5slide)
;; (use-package ox-impress-js)
;; (use-package ox-reveal)
;; (use-package ox-spectacle )
;; bootstrap html
(use-package ox-twbs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment