Skip to content

Commit

Permalink
Merge pull request #111 from mads379/master
Browse files Browse the repository at this point in the history
#108 Enable utop-command to be buffer-local
  • Loading branch information
jeremiedimino committed Nov 5, 2014
2 parents 35419a3 + 137151c commit b7259ae
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/top/utop.el
Original file line number Diff line number Diff line change
Expand Up @@ -1229,10 +1229,14 @@ Special keys for utop:
(utop-query-arguments)
;; Create the buffer
(setq buf (get-buffer-create utop-buffer-name))
;; Jump to the buffer
(pop-to-buffer buf)
;; Put it in utop mode
(with-current-buffer buf (utop-mode))))
;; Jump to the buffer - If utop-command is used as a
;; buffer-local variable we pass the value along to the utop
;; buffer.
(let ((cmd utop-command))
(pop-to-buffer buf)
(setq utop-command cmd)
;; Put it in utop mode
(with-current-buffer buf (utop-mode)))))
buf))

(provide 'utop)
Expand Down

0 comments on commit b7259ae

Please sign in to comment.