23 lines
619 B
EmacsLisp
23 lines
619 B
EmacsLisp
;; -*- lexical-binding: t; -*-
|
|
(defun hgh/edit-init-file ()
|
|
(interactive)
|
|
(find-file user-init-file))
|
|
|
|
(defun hgh/duplicate-dwim ()
|
|
(interactive)
|
|
(duplicate-dwim)
|
|
(next-line))
|
|
|
|
(defun hgh/set-bar-cursor(&rest args)
|
|
(setq-local cursor-type 'bar))
|
|
|
|
(defun hgh/set-box-cursor(&rest args)
|
|
(setq-local cursor-type 'box))
|
|
|
|
(defun hgh/update-projects ()
|
|
(interactive)
|
|
(dolist (path '("/programming/projects/" "/programming/thirdparty/" "/programming/probe/"))
|
|
(let ((projects-root (concat (getenv "HOME") path)))
|
|
(dolist (dir (directory-files projects-root t "^[^.]"))
|
|
(project-current t dir)))))
|