summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-03-22 06:59:28 -0700
committerFranck Cuny <franck@fcuny.net>2022-03-22 06:59:28 -0700
commit0bf79addbda8420e82d43c65ffa7c6d3d3973c31 (patch)
tree97cca20ca1431a6278f8a2a1f50f38def7394559 /emacs/custom
parenttramp: make flymake happy (diff)
downloademacs.d-0bf79addbda8420e82d43c65ffa7c6d3d3973c31.tar.gz
ui: make flymake happy
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/fcuny-ui.el55
1 files changed, 21 insertions, 34 deletions
diff --git a/emacs/custom/fcuny-ui.el b/emacs/custom/fcuny-ui.el
index dced5cd..aad7e55 100644
--- a/emacs/custom/fcuny-ui.el
+++ b/emacs/custom/fcuny-ui.el
@@ -1,11 +1,9 @@
-(use-package fringe
-  :custom
-  (left-fringe-width 0)
-  (right-fringe-width 0)
-  (fringes-outside-margins nil)
-  (indicate-buffer-boundaries nil)
-  (indicate-empty-lines nil)
-  (overflow-newline-into-fringe t))
+;;; fcuny-ui -- configure UI elements
+;;; Commentary:
+
+;;; Code:
+(eval-and-compile
+  (require 'use-package))
 
 (use-package scroll-bar
   :config
@@ -83,24 +81,6 @@
 (when (boundp 'world-clock-timer-second)
   (setq world-clock-timer-second 60))
 
-;;; Mode line
-(setq mode-line-percent-position '(-3 "%p"))
-(setq-default mode-line-format
-              '("%e"
-                mode-line-front-space
-                mode-line-mule-info
-                mode-line-client
-                mode-line-modified
-                mode-line-remote
-                mode-line-frame-identification
-                mode-line-buffer-identification
-                "  "
-                mode-line-position
-                mode-line-modes
-                "  "
-                mode-line-misc-info
-                mode-line-end-spaces))
-
 ;; Disable help mouse-overs for mode-line as they provide little to no benefits
 (setq mode-line-default-help-echo nil
       show-help-function nil)
@@ -113,22 +93,28 @@
   (setq uniquify-buffer-name-style 'forward)
   (setq uniquify-separator "/"))
 
-;; required for dap-mode and dap-ui-mode
-(use-package posframe
-  :ensure t)
-
 (setq display-buffer-alist
       `(
-        ("\\*\\(.* # Help.*\\|Help\\)\\*"    ; See the hooks for `visual-line-mode'
+        ("\\*\\(.* # Help.*\\|Help\\)\\*" ; See the hooks for `visual-line-mode'
          (display-buffer-reuse-mode-window display-buffer-in-side-window)
          (window-width . 0.35)
          (side . left)
          (slot . 0))
+        ("\\*\\(Flymake diagnostics\\|eldoc\\|Package-Lint\\).*"
+         (display-buffer-in-side-window)
+         (window-height . 0.16)
+         (side . top)
+         (slot . 0))
+        ("\\*\\(Backtrace\\|Warnings\\|Compile-Log\\|Flymake log\\)\\*"
+         (display-buffer-in-side-window)
+         (window-height . 0.16)
+         (side . top)
+         (slot . 2))
         ("\\*\\(Wo\\)\?Man"
          (display-buffer-in-side-window)
-		 (window-width . 0.4)
-		 (side . left)
-		 (slot . 0))
+	     (window-width . 0.4)
+	     (side . left)
+	     (slot . 0))
         ("\\*\\(wclock\\).*"
          (display-buffer-in-side-window)
          (window-width . 0.35)
@@ -138,3 +124,4 @@
 (add-hook 'help-mode-hook #'visual-line-mode)
 
 (provide 'fcuny-ui)
+;;; fcuny-ui.el ends here