Skip to content

Commit

Permalink
Convert term advice to use defadvice.
Browse files Browse the repository at this point in the history
  • Loading branch information
calliecameron committed Jun 18, 2016
1 parent 890e7ba commit bc9c804
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions smart-mode-line.el
Original file line number Diff line number Diff line change
Expand Up @@ -1072,8 +1072,11 @@ the mode-line will be setup."
(add-hook 'eshell-directory-change-hook 'sml/generate-buffer-identification)

;; Term support
(advice-add 'term-command-hook :after 'sml/generate-buffer-identification)
(advice-add 'term-handle-ansi-terminal-messages :after 'sml/generate-buffer-identification)
(defadvice term-command-hook (after sml/term-advice-1 activate)
(sml/generate-buffer-identification))

(defadvice term-handle-ansi-terminal-messages (after sml/term-advice-2 activate)
(sml/generate-buffer-identification))

;; Dired overrides the buffer-identification (which we would
;; normally respect) but doesn't actually do anything useful with
Expand Down

0 comments on commit bc9c804

Please sign in to comment.