From f39ffd1b94dff07520244296933ce3c49d0c1e4e Mon Sep 17 00:00:00 2001 From: Max Regan Date: Thu, 2 Jul 2020 10:30:07 -0700 Subject: [PATCH] Update configs --- .emacs.d/init.org | 37 +++++++++++++++++++++++++++---------- .mgr_config/install.sh | 1 + 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/.emacs.d/init.org b/.emacs.d/init.org index f72c739..e3d32e0 100644 --- a/.emacs.d/init.org +++ b/.emacs.d/init.org @@ -56,8 +56,7 @@ Configure some startup parameters. (setq inhibit-splash-screen t) ;; disable the splash screen on boot (menu-bar-mode 0) ;; disable the menu bar (tool-bar-mode 0) ;; disable the tool bar - -;; (scroll-bar-mode 0) ;; disable scroll bars + (scroll-bar-mode 0) ;; disable scroll bars #+END_SRC *** Deleting @@ -111,7 +110,8 @@ Monokai theme is my theme of choice. #+BEGIN_SRC emacs-lisp (use-package monokai-theme) - (set-frame-font "Ubuntu Mono-12" nil t) + ;; This is busted when the font isn't installed (i.e. on MacOS) + ;; (set-frame-font "Ubuntu Mono-12" nil t) #+END_SRC *** Navigation @@ -168,19 +168,19 @@ templates yet. #+BEGIN_SRC emacs-lisp (use-package org :bind (("C-c o c" . org-capture) - ("C-c o l" . org-store-link)) + ("C-c o l" . org-store-link)) :custom (initial-major-mode 'org-mode) (org-src-tab-acts-natively t) (org-confirm-babel-evaluate nil) (org-capture-templates '(("b" "Bookmark" entry - (file+headline "~/notes/bookmarks.org" "Unsorted") - "* %T %^{Title}\n\n Source: %u, %c\n\n %i"))) + (file+headline "~/notes/bookmarks.org" "Unsorted") + "* %T %^{Title}\n\n Source: %u, %c\n\n %i"))) :init (org-babel-do-load-languages 'org-babel-load-languages - '((shell . t) - (ruby . t) - (python . t) - (C . t)))) + '((shell . t) + (ruby . t) + (python . t) + (C . t)))) #+END_SRC *** org-journal @@ -203,6 +203,23 @@ When doing compilation, always jump to the first error to reduce development cyc (setq compilation-auto-jump-to-first-error t) #+END_SRC +*** Dired + +=dired-tree= allows expanding directories in dired buffers. This is +nice for pinning a dired buffer to the side to use as a file browser. + +#+BEGIN_SRC emacs-lisp + (use-package dired-tree) +#+END_SRC + +=dired= is great, but too detailed by default. Disable + +#+BEGIN_SRC emacs-lisp + (use-package dired + :hook ((dired . dired-hide-details-mode) + (dired . (lambda (toggle-truncate-lines t)))) + :bind ("" . dired-subtree-toggle)) +#+END_SRC *** Git (=magit=) Install magit, the emacs porcelain for git. diff --git a/.mgr_config/install.sh b/.mgr_config/install.sh index 1497599..ae0129f 100644 --- a/.mgr_config/install.sh +++ b/.mgr_config/install.sh @@ -20,6 +20,7 @@ if [[ $NEEDS_GIT_DIR != 0 ]]; then git init --bare ~/.git_home/ git-home remote add origin https://gitlab.maxregan.me/max/configs.git git-home branch master --set-upstream-to origin/master + git-home config status.showUntrackedFiles no fi echo "Checking out configs."