From d8538bf03d104f3ebc20c7dc34aba5ec58168a43 Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Wed, 30 Jan 2019 15:41:54 +0100 Subject: [PATCH] some additional notes. Signed-off-by: Andreas Gerler --- README.org | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 08a55e04..5674149c 100644 --- a/README.org +++ b/README.org @@ -23,8 +23,16 @@ here you have aws-snippets pre-installed bringing you some relief. You need something for note-taking? Orgmode is there for you. -- opens this config file. -- opens org/emacs.org with some tips and tricks. +|--------------+----------------------------------------------------------------------------------| +| Key | description | +|--------------+----------------------------------------------------------------------------------| +| - | opens ~/workorg/work.org | +| - | opens ~/org/notes.org | +| - | opens ~/org/emacs.org with some tips and tricks. | +| | If that's not present it defaults to org/emacs.org in this configuration folder. | +| - | opens this config file. | +|--------------+----------------------------------------------------------------------------------| + And don't forget: It's all text. You can easily extend it with your own tips and tricks. @@ -39,6 +47,27 @@ If you decide to compile [[http://www.emacs.org][Emacs]] from sources: make && make install #+END_SRC +I recommend you create yourself those directories: + +#+BEGIN_SRC sh :eval never + mkdir ~/org/ + mkdir ~/workorg/ +#+END_SRC + +To make your life easier and edit files remotely you should align +Emacs and ssh. +Within Emacs see the TRAMP configuration below. +For ssh please add those lines to your ssh/.confg: + +#+NAME: .ssh/config +#+BEGIN_SRC conf :eval never + Host * + ControlMaster auto + ControlPath ~/.ssh/sockets/ssh.%C + ControlPersist 600 + +#+END_SRC + You should configure a few environment variables on your system. Those lines might fit into your =.bashrc=: @@ -523,6 +552,27 @@ Confirm quit to avoid hitting C-x C-c by accident. #+END_SRC +* TRAMP + +#+BEGIN_SRC emacs-lisp :tangle yes + (load-library "tramp") + (add-to-list 'tramp-remote-path "~/bin") + (setq default-tramp-method "sshx") +#+END_SRC + +With this you can do /sudo:ssh-host:file-on-ssh-host + +#+BEGIN_SRC emacs-lisp :tangle yes + (add-to-list 'tramp-default-proxies-alist '(nil "\\`root\\'" "/ssh:%h:")) +#+END_SRC + +Use our default socket files + +#+BEGIN_SRC emacs-lisp :tangle yes + (if (file-accessible-directory-p "~/.ssh/sockets") + (setq tramp-ssh-controlmaster-options "-o ControlMaster=auto -o ControlPath=~/.ssh/sockets/ssh.%%C -o ControlPersist=600")) +#+END_SRC + * colors [2019-01-29 Tue 17:07] -- 2.47.3