Skip to content

Commit

Permalink
Rearrange init.el
Browse files Browse the repository at this point in the history
  • Loading branch information
lnfiniteMonkeys committed Oct 2, 2019
1 parent 839815f commit c650fa5
Showing 1 changed file with 24 additions and 18 deletions.
42 changes: 24 additions & 18 deletions init.el
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
;;;;;;;;;;;;;; Setup package stuff
;;; An example config file to get you started with Emacs.
;;; It uses use-package for automatic package installation and management,
;;; it maintains the familiar-to-many Ctrl-c for copy, Ctrl-x for cut, Ctrl-v for paste.

;;;;;;;;;;;;;;;;; Setup package stuff
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
("gnu" . "http://elpa.gnu.org/packages/")
Expand Down Expand Up @@ -41,12 +45,19 @@
(transient-mark-mode 1)
(setq cua-keep-region-after-copy t)

;; Type 'y' or 'n' instead of 'yes' or 'no'
(fset 'yes-or-no-p 'y-or-n-p)

;; Replaces a selection with any letter pressed
(delete-selection-mode 1)

(setq scroll-conservatively 100)

;;;;;;;;;;;;;; Setup themes and other aesthetic stuff

;; Set the theme and the cursor's colour
;; Set the mood, there's plenty of other themes to choose from here:
;; https://emacsthemes.com/popular/index.html
(use-package monokai-theme)
(set-cursor-color "#ff1493")

;; Set the window's name
(setq frame-title-format "TimeLines")
Expand All @@ -58,31 +69,25 @@
(scroll-bar-mode -1)
(tooltip-mode -1))

;; Type 'y' or 'n' instead of 'yes' or 'no'
(fset 'yes-or-no-p 'y-or-n-p)

;; Replaces a selection with any letter pressed
(delete-selection-mode 1)

(line-number-mode 1)
(show-paren-mode 1)

;; Hihlight the line the cursor is on
;; Cursor settings
(blink-cursor-mode 0)
(set-default 'cursor-type 'box)
(set-cursor-color "#ff1493")

;; Highlight the line the cursor is on
(global-hl-line-mode t)

;; Operate on visual, rather than logical, lines
(add-hook 'text-mode-hook 'turn-on-visual-line-mode)

;; Reload the init file
;; Reload the init file with a key binding
(global-set-key (kbd "C-c p")
(lambda() (interactive)
(org-babel-load-file "~/.emacs.d/init.el")))
(lambda() (interactive)
(org-babel-load-file "~/.emacs.d/init.el")))

(setq scroll-conservatively 100)

;; Cursor settings
(blink-cursor-mode 0)
(set-default 'cursor-type 'box)

;; Clean up startup behaviour
(setq inhibit-startup-message t)
Expand All @@ -106,6 +111,7 @@
(ido-vertical-mode 1))

(setq initial-major-mode 'lisp-interaction-mode)

(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
Expand Down

0 comments on commit c650fa5

Please sign in to comment.