From 31bbe7974c358302b0c451b253933103f7b3e18c Mon Sep 17 00:00:00 2001 From: Matthew Kosarek Date: Wed, 31 Jan 2024 13:40:00 -0500 Subject: housekeeping: various fixes --- lisp/general.el | 28 ++++++++++------------------ lisp/org-custom.el | 2 ++ 2 files changed, 12 insertions(+), 18 deletions(-) (limited to 'lisp') diff --git a/lisp/general.el b/lisp/general.el index 4b51b9b..79cafe2 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -113,21 +113,12 @@ (setq-default left-fringe-width 20) (setq-default right-fringe-width 20) -;; Margins: https://stackoverflow.com/a/22320638/7980887 -(defun my-set-text-margins () - "Set margins in current buffer." - (setq left-margin-width 50) - (setq right-margin-width 50)) - -(add-hook 'text-mode-hook 'my-set-text-margins) - -(defun my-set-prog-margins () - "Set margins in current buffer." - (setq left-margin-width 25) - (setq right-margin-width 25)) - -(add-hook 'prog-mode-hook 'my-set-prog-margins) - +;; Margin +(use-package perfect-margin + :ensure t + :config + (perfect-margin-mode 1) + ) ;; Highlight todos (use-package hl-todo @@ -232,9 +223,10 @@ (use-package git-gutter-fringe :ensure t :config - (define-fringe-bitmap 'git-gutter-fr:added [224] nil nil '(center repeated)) - (define-fringe-bitmap 'git-gutter-fr:modified [224] nil nil '(center repeated)) - (define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240] nil nil 'bottom)) + ;(define-fringe-bitmap 'git-gutter-fr:added [224] nil nil '(center repeated)) + ;(define-fringe-bitmap 'git-gutter-fr:modified [224] nil nil '(center repeated)) + ;(define-fringe-bitmap 'git-gutter-fr:deleted [128 192 224 240] nil nil 'bottom) + ) (use-package magit :ensure t) diff --git a/lisp/org-custom.el b/lisp/org-custom.el index 96bf819..8aa1417 100644 --- a/lisp/org-custom.el +++ b/lisp/org-custom.el @@ -112,5 +112,7 @@ (use-package org-download :ensure t) +(setq org-log-repeat nil) + (provide 'org-custom) ;;; org-custom.el ends here -- cgit v1.2.1