 (add-hook 'before-save-hook 'delete-trailing-whitespace)
 
 ;; Activate nlinum-mode (line numbers on the left)
-(general-define-key
- "C-x n l" 'nlinum-mode)
+(with-eval-after-load "nlinum"
+  (general-define-key
+   "C-x n l" 'nlinum-mode))
 
 ;;;; Section delimiters
 

;;;###autoload
(defun danylo/gc-message ()
  "Garbage collection message."
  (when garbage-collection-messages
    (let ((message-log-max nil))
      (message "%s Collecting garbage"
	       (propertize (all-the-icons-faicon "trash-o")

	 (if (not buffer-read-only) (toggle-read-only)))
  (defun danylo/switch-to-term-char-mode () (interactive) (term-char-mode)
	 (if (buffer-read-only) (toggle-read-only)))
  (define-key term-raw-map (kbd "C-c t c") 'danylo/switch-to-term-char-mode)
  (define-key term-raw-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
  (define-key term-mode-map (kbd "C-c t c") 'danylo/switch-to-term-char-mode)
  (define-key term-mode-map (kbd "C-c t l") 'danylo/switch-to-term-line-mode)
  ;; Copy/paste native Emacs keystrokes
  (define-key term-raw-map (kbd "C-k") 'term-send-raw)
  (define-key term-raw-map (kbd "C-y") 'term-paste)
