aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.org31
1 files changed, 27 insertions, 4 deletions
diff --git a/config.org b/config.org
index d04570e..0963c0a 100644
--- a/config.org
+++ b/config.org
@@ -251,7 +251,19 @@ Use [[https://magit.vc/][magit]] to supplement emacs built in version control sy
251 :commands (magit-status magit-blame magit-log-buffer-file) 251 :commands (magit-status magit-blame magit-log-buffer-file)
252 :bind (("C-c v s" . magit-status) 252 :bind (("C-c v s" . magit-status)
253 ("C-c v B" . magit-blame) 253 ("C-c v B" . magit-blame)
254 ("C-c v L" . magit-log-buffer-file))) 254 ("C-c v L" . magit-log-buffer-file))
255 :init
256 (setq ;; Use ivy for magit
257 magit-completing-read-function 'ivy-completing-read))
258#+END_SRC
259
260Use magithub for magit/github integration
261
262#+BEGIN_SRC emacs-lisp
263(use-package magithub
264 :ensure t
265 :config
266 (magithub-feature-autoinject t))
255#+END_SRC 267#+END_SRC
256** diff-hl 268** diff-hl
257[[https://github.com/dgutov/diff-hl][diff-hl]] displays diff information in the margin 269[[https://github.com/dgutov/diff-hl][diff-hl]] displays diff information in the margin
@@ -355,8 +367,6 @@ the mouse to click a directory or filename.
355 ivy-initial-inputs-alist nil 367 ivy-initial-inputs-alist nil
356 ;; Display recently opened files when switching buffers 368 ;; Display recently opened files when switching buffers
357 ivy-use-virtual-buffers t 369 ivy-use-virtual-buffers t
358 ;; Use ivy for magit
359 magit-completing-read-function 'ivy-completing-read
360 ;; Use ivy for projectile 370 ;; Use ivy for projectile
361 projectile-completion-system 'ivy 371 projectile-completion-system 'ivy
362 ;; Allow the input to be selectable with C-P RET. Useful for creating files 372 ;; Allow the input to be selectable with C-P RET. Useful for creating files
@@ -562,6 +572,13 @@ This part is for setting up python mode in the way I prefer.
562 (setq-local indent-tabs-mode nil)) 572 (setq-local indent-tabs-mode nil))
563(add-hook 'python-mode-hook 'my-python-setup) 573(add-hook 'python-mode-hook 'my-python-setup)
564#+END_SRC 574#+END_SRC
575** Java
576#+BEGIN_SRC emacs-lisp
577(defun my-java-setup ()
578 (company-mode)
579 (auto-fill-mode 1))
580(add-hook 'java-mode-hook 'my-java-setup)
581#+END_SRC
565** Rust 582** Rust
566Installation: 583Installation:
567- Install Rust: https://www.rust-lang.org/en-US/install.html 584- Install Rust: https://www.rust-lang.org/en-US/install.html
@@ -645,7 +662,7 @@ go get -u golang.org/x/tools/cmd/goimports
645* org-mode 662* org-mode
646** Setup 663** Setup
647#+BEGIN_SRC emacs-lisp 664#+BEGIN_SRC emacs-lisp
648(setq org-directory "~/org" 665(setq org-directory "~/Resilio Sync/org"
649 666
650 ;; Indents headers instead of displaying all of the asterisks 667 ;; Indents headers instead of displaying all of the asterisks
651 org-startup-indented t 668 org-startup-indented t
@@ -670,9 +687,15 @@ go get -u golang.org/x/tools/cmd/goimports
670 ;; Define a default width for inline images. this can be overridden 687 ;; Define a default width for inline images. this can be overridden
671 ;; by +ATTR_*: width="200" 688 ;; by +ATTR_*: width="200"
672 org-image-actual-width '(400) 689 org-image-actual-width '(400)
690
691 ;; Default org-archive-subtree location. Use an archive subdirectory
692 ;; This can be over-written using something like #+ARCHIVE: ::* Archived Tasks
693 org-archive-location "archive/%s_archive::"
673) 694)
674 695
675(defun my-org-mode-setup () 696(defun my-org-mode-setup ()
697 (setq-local fill-column 79)
698 (auto-fill-mode 1)
676 (setq-local display-line-numbers-width 4)) 699 (setq-local display-line-numbers-width 4))
677 700
678(add-hook 'org-mode-hook 'my-org-mode-setup) 701(add-hook 'org-mode-hook 'my-org-mode-setup)