emacs.d/bundle/bundle--gui.el

100 lines
3.1 KiB
EmacsLisp
Raw Normal View History

2023-10-04 19:58:04 +02:00
(setq default-frame-alist
'((tab-bar-lines . 1)
(font . "MonoLisa-11")
(width . 85)
(height . 55)
(vertical-scroll-bars)))
2023-10-07 12:23:57 +02:00
(setq frame-resize-pixelwise t)
(defun center-frame (&optional frame)
"Center FRAME on the screen."
(interactive)
(let ((frame (or frame (selected-frame))))
(let ((frame-width (frame-pixel-width frame))
(frame-height (frame-pixel-height frame))
(display-width (display-pixel-width))
(display-height (display-pixel-height)))
(set-frame-position frame
(/ (- display-width frame-width) 2)
(/ (- display-height frame-height) 2)))))
(add-hook 'after-make-frame-functions 'center-frame)
2022-05-06 19:31:15 +02:00
(use-package all-the-icons
2023-10-02 11:52:21 +02:00
:if (display-graphic-p)
:commands all-the-icons-install-fonts
:init
(unless (find-font (font-spec :name "all-the-icons"))
(all-the-icons-install-fonts t)))
2022-05-06 19:31:15 +02:00
(use-package all-the-icons-dired
2023-10-02 11:52:21 +02:00
:if (display-graphic-p)
:hook (dired-mode . all-the-icons-dired-mode))
2023-10-02 11:52:21 +02:00
(use-package doom-modeline
:init (doom-modeline-mode 1)
:custom (doom-modeline-height 0))
2022-05-06 19:31:15 +02:00
(use-package helpful
2023-10-02 11:52:21 +02:00
:commands (helpful-callable helpful-variable helpful-command helpful-key)
:bind ([remap describe-command] . helpful-command) ([remap describe-key] . helpful-key))
(use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode))
2022-05-06 19:31:15 +02:00
(use-package olivetti
2023-10-02 11:52:21 +02:00
:custom (olivetti-body-width 83)
:bind ("<f6>" . olivetti-mode))
2023-10-02 11:52:21 +02:00
(add-hook 'Info-mode-hook
(lambda ()
(make-local-variable 'olivetti-body-width)
(setq olivetti-body-width 75)
(olivetti-mode)))
2023-08-18 19:10:32 +02:00
(use-package ace-window :init (global-set-key (kbd "M-o") 'ace-window))
2023-07-19 14:19:38 +02:00
;; (use-package emojify
;; ;; https://ianyepan.github.io/posts/emacs-emojis/
;; :config
;; (when (member "Segoe UI Emoji" (font-family-list))
;; (set-fontset-font
;; t 'symbol (font-spec :family "Segoe UI Emoji") nil 'prepend))
;; (setq emojify-display-style 'unicode)
;; (setq emojify-emoji-styles '(unicode)))
2023-02-02 20:53:53 +01:00
;; (use-package vertico :init (vertico-mode))
2022-05-06 19:31:15 +02:00
(use-package webjump
2023-10-02 11:52:21 +02:00
:bind ("C-c j" . webjump)
:custom
(webjump-sites
(append '(("Wikipedia_de" . [simple-query "de.wikipedia.org" "https://de.wikipedia.org/wiki/" ""])
("leo.org" . [simple-query "dict.leo.org" "https://dict.leo.org/german-english/" ""]))
webjump-sample-sites)))
2023-10-03 18:38:31 +02:00
(use-package tab-bar
:ensure nil
:init (tab-bar-mode 1)
:custom
(tab-bar-format
'(tab-bar-format-history
tab-bar-format-tabs-groups)))
(global-set-key (kbd "M-[") 'tab-bar-history-back)
(global-set-key (kbd "M-]") 'tab-bar-history-forward)
(setq tab-line-close-button-show nil)
(setq tab-line-new-button-show nil)
(setq tab-line-tabs-function 'tab-line-tabs-mode-buffers)
2023-10-01 17:27:35 +02:00
;(global-tab-line-mode 1)
2023-10-07 16:13:28 +02:00
(use-package doc-view
:ensure nil
:custom
(doc-view-dvipdfm-program "mutool")
(doc-view-odf->odf-converter-program "soffice")
(dov-view-odf->pdf-converter-function 'doc-view-odf->pdf-converter-soffice)
(doc-view-pdf->png-converter-function 'doc-view-pdf->png-converter-mupdf)
(doc-view-resolution 150))