Attempt to use git-gutter-fringe only in graphics mode
This commit is contained in:
		
							
								
								
									
										9
									
								
								init.el
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								init.el
									
									
									
									
									
								
							| @@ -282,14 +282,19 @@ | |||||||
|   (drag-stuff-global-mode t)) |   (drag-stuff-global-mode t)) | ||||||
|  |  | ||||||
| ;; Git gutter | ;; Git gutter | ||||||
| (use-package git-gutter-fringe | ;; If we are in text-only mode, there is no fringe. | ||||||
|  | (let ((gitgutter-package | ||||||
|  |        (if (display-graphic-p) | ||||||
|  |            "git-gutter-fringe" | ||||||
|  |          "git-gutter"))) | ||||||
|  |   (eval `(use-package ,gitgutter-package | ||||||
|     :ensure t |     :ensure t | ||||||
|     :demand |     :demand | ||||||
|     :config |     :config | ||||||
|     (global-git-gutter-mode t) |     (global-git-gutter-mode t) | ||||||
|     :bind |     :bind | ||||||
|     (:map gpolonkai/pers-map |     (:map gpolonkai/pers-map | ||||||
|    ("gg" . git-gutter:update-all-windows))) |      ("gg" . git-gutter:update-all-windows))))) | ||||||
|  |  | ||||||
| ;; Org mode | ;; Org mode | ||||||
| (use-package org | (use-package org | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user