diff --git a/init.d/basics/buffers.el b/init.d/basics/buffers.el index bdc2f23..1f28af5 100644 --- a/init.d/basics/buffers.el +++ b/init.d/basics/buffers.el @@ -1,6 +1,6 @@ ;;; buffers.el --- Default settings for buffers. -*- lexical-binding: t; -*- -;; Time-stamp: <2020-06-03T17:54:14+0200> +;; Time-stamp: <2020-08-02T00:42:18+0200> ;;; Commentary: ;; * Setup scratch buffer. @@ -35,7 +35,11 @@ (if (string-match expression (buffer-name buffer)) (throw 'return nil))) t)) - (set-frame-parameter nil 'buffer-predicate 'my/buffer-predicate) + ; Doesn't work with use-package? + (add-hook 'after-make-frame-functions + (lambda (frame) + (set-frame-parameter + frame 'buffer-predicate 'my/buffer-predicate))) (defun my/truncate-lines () "Truncate lines in local buffer instead of wrapping them."