Remove make-(frame|terminal) hooks

This commit is contained in:
Henrik Lissner 2015-06-24 15:36:05 +02:00
parent e8c29fe99c
commit 27dba8ede1
3 changed files with 3 additions and 23 deletions

View file

@ -78,20 +78,6 @@
(unless (file-exists-p path)
(make-directory path t)))))
(defvar after-make-console-frame-hooks '()
"Hooks to run after creating a new TTY frame")
(defvar after-make-window-system-frame-hooks '()
"Hooks to run after creating a new window-system frame")
(defun run-after-make-frame-hooks (frame)
"Selectively run either `after-make-console-frame-hooks' or
`after-make-window-system-frame-hooks'"
(select-frame frame)
(run-hooks (if window-system
'after-make-window-system-frame-hooks
'after-make-console-frame-hooks)))
(add-hook 'after-make-frame-functions 'run-after-make-frame-hooks)
(add-hook! after-init (run-after-make-frame-hooks (selected-frame)))
;; Emacs configuration ;;;;;;;;;;;;;;;;;
;;; UTF-8 please