 ;; Delete trailing whitespace before saving a file
 (add-hook 'before-save-hook 'delete-trailing-whitespace)
 
-;; Enable narrowing commands
+;; Enable narrowing commands (C-x n)
 (put 'narrow-to-region 'disabled nil)
 (put 'narrow-to-page 'disabled nil)
 
+;; Enable goal column (C-x C-n)
+(put 'set-goal-column 'disabled nil)
+
 ;; Display column number in addition to line number in mode line
 (column-number-mode 1)
 


(setq visible-bell t)


(line-number-mode 1)

(add-to-list 'initial-frame-alist '(fullscreen . fullheight))

;; (set-face-attribute 'default nil :font "Hack" :height 120)
(set-face-attribute 'default nil :family "Iosevka" :height 130)
;; (set-face-attribute 'variable-pitch nil :family "Source Sans Pro")
(set-face-attribute 'variable-pitch nil :family "Source Serif Pro" :height 1.1)

(require 'pulse)

(setq bongo-enabled-backends '(mpv vlc speexdec))

(setq custom-safe-themes t)

;;; Configure themes

(setq modus-themes-mode-line '(accented borderless))
(modus-themes-load-operandi)
(define-key global-map (kbd "<f5>") #'modus-themes-toggle)

(setq-default org-fontify-whole-heading-line t)

(when (eq system-type 'darwin)
  ;; Fixes TLS issues on macOS
  (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
  (setq mac-command-modifier 'meta)
  (setq mac-option-modifier 'none))

;; I seperate my sentences with one space not two.
(setq-default sentence-end-double-space nil)

;; Change this to Sasha Chua's backup strategy of using a directory
(setq make-backup-files nil)

;; (blink-cursor-mode -1)

(setq shift-select-mode nil)


(show-paren-mode 1)


  (progn (call-interactively 'end-of-buffer)
	 (call-interactively 'org-previous-visible-heading)))
(define-key global-map (kbd "C-c t") 'my/org-last-heading)

(setq org-capture-templates
      '(("p" "org-protocol"
