Pārlūkot izejas kodu

Add git-revisions stub

master
10sr pirms 5 gadiem
vecāks
revīzija
d697a41ec8
Parakstījis: 10sr GPG atslēgas ID: C384BB17CBB19347
1 mainītis faili ar 7 papildinājumiem un 23 dzēšanām
  1. +7
    -23
      emacs.el

+ 7
- 23
emacs.el Parādīt failu

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

;; Time-stamp: <2018-10-10 19:49:14 JST 10sr>
;; Time-stamp: <2018-10-11 00:27:24 JST 10sr>

;;; Code:

@@ -2238,29 +2238,13 @@ 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"))))
)
;; git revision

(defun git-revision-open-tree (treeish)
"Open git tree buffer of TREEISH.")

;; ;; TODO: autoload
;; (eval-after-load 'tramp
;; '(progn
;; (git-tramp-add-method)
;; (tramp-set-completion-function git-tramp-method git-tramp-completion-function-alist)))
(defun git-revision-open (commit)
"Open git tree buffer of COMMIT.")


;; Local Variables:


Notiek ielāde…
Atcelt
Saglabāt