Remove make-(frame|terminal) hooks
This commit is contained in:
parent
e8c29fe99c
commit
27dba8ede1
3 changed files with 3 additions and 23 deletions
14
core/core.el
14
core/core.el
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue