Skip to content

Commit

Permalink
bind gh-profile-current-profile in gist-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma committed Mar 15, 2013
1 parent 5cefae0 commit 8e2ae4c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gist.el
Expand Up @@ -256,7 +256,8 @@ for the gist."
(let ((gist nil) (let ((gist nil)
(multi nil) (multi nil)
(prefix (format "*gist %s*" id)) (prefix (format "*gist %s*" id))
(result nil)) (result nil)
(profile (gh-profile-current-profile)))
(dolist (g gist-list-db) (dolist (g gist-list-db)
(when (string= (oref g :id) id) (when (string= (oref g :id) id)
(setq gist g))) (setq gist g)))
Expand Down Expand Up @@ -286,7 +287,8 @@ for the gist."
;; set minor mode ;; set minor mode
(gist-mode 1) (gist-mode 1)
(setq gist-id id (setq gist-id id
gist-filename fname)) gist-filename fname
gh-profile-current-profile profile))
(set-buffer-modified-p nil)) (set-buffer-modified-p nil))
(setq result buffer)))) (setq result buffer))))
(if multi (if multi
Expand Down

0 comments on commit 8e2ae4c

Please sign in to comment.