Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
emacs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Hauspie
emacs
Commits
572939a4
Commit
572939a4
authored
1 year ago
by
Michael Hauspie
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
configuration.org
+47
-5
47 additions, 5 deletions
configuration.org
with
47 additions
and
5 deletions
configuration.org
+
47
−
5
View file @
572939a4
...
...
@@ -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)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment