     (untabify beg end)))
 
 ;;;###autoload
-(defun doom/toggle-sticky (&optional beg end)
-  "Make a selection sticky by placing it in the header line. Possibly helpful
-for function signatures or notes. Run again to clear the header line."
-  (interactive "r")
-  (setq header-line-format
-        (when mark-active
-          (concat (propertize (format linum-format (line-number-at-pos beg))
-                              'face 'font-lock-comment-face)
-                  (let ((content (buffer-substring beg end)))
-                    (setq content (replace-regexp-in-string "\n" " " content t t))
-                    (setq content (replace-regexp-in-string "\\s-+" " " content))
-                    content)))))
-
-;;;###autoload
 (defun doom|enable-delete-trailing-whitespace ()
+  "Attaches `delete-trailing-whitespace' to a buffer-local `before-save-hook'."
   (add-hook 'before-save-hook #'delete-trailing-whitespace nil t))
 
 

`doom/backward-delete-whitespace-to-column' otherwise."
  (interactive)
  (save-match-data
    (cond ((doom--surrounded-p)
           (let ((whitespace-match (match-string 1)))
             (cond ((not whitespace-match)
                    (call-interactively #'delete-backward-char))
                   ((string-match "\n" whitespace-match)
                    (funcall (if (featurep 'evil) #'evil-delete #'delete-region)
                             (point-at-bol) (point))
                    (call-interactively #'delete-backward-char)
                    (save-excursion (call-interactively #'delete-char)))
                   (t (just-one-space 0)))))
          (t
           (doom/backward-delete-whitespace-to-column)))))

;;;###autoload
(defun doom/newline-and-indent ()

      (mkdir doom-scratch-files-dir t))
    (with-current-buffer
        (if project-p
            (find-file-noselect
             (expand-file-name (replace-regexp-in-string
                                "\\." "_" (projectile-project-name)
                                t t)
                               doom-scratch-files-dir)
             nil t)
          (get-buffer-create "*doom:scratch*"))
      (when project-p
        (rename-buffer (format "*doom:scratch (%s)*" (projectile-project-name))))
