Browse Source

git tramp wip

master
10sr 5 years ago
parent
commit
d712548c71
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 26 additions and 1 deletions
  1. +26
    -1
      emacs.el

+ 26
- 1
emacs.el View File

@@ -1,6 +1,6 @@
;;; emacs.el --- 10sr emacs initialization

;; Time-stamp: <2018-10-10 18:23:47 JST 10sr>
;; Time-stamp: <2018-10-10 19:49:14 JST 10sr>

;;; Code:

@@ -2237,6 +2237,31 @@ use for the buffer. It defaults to \"*recetf-show*\"."

(define-key ctl-x-map (kbd "C-r") 'recently-show)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; git tramp

(require 'tramp)

;; TODO: autoload
(defconst git-tramp-method "git"
"Method to connect git repository.")

(defun git-tramp-add-method ()
"Add git tramp method."
;; (add-to-list 'tramp-methods
;; `(,git-tramp-method
;; (tramp-login-program ,git-tramp-git-executable)
;; (tramp-login-args (,docker-tramp-docker-options ("exec" "-it") ("-u" "%u") ("%h") ("sh")))
;; (tramp-remote-shell "/bin/sh")
;; (tramp-remote-shell-args ("-i" "-c"))))
)

;; ;; TODO: autoload
;; (eval-after-load 'tramp
;; '(progn
;; (git-tramp-add-method)
;; (tramp-set-completion-function git-tramp-method git-tramp-completion-function-alist)))


;; Local Variables:
;; flycheck-disabled-checkers: (emacs-lisp-checkdoc)


Loading…
Cancel
Save