Skip to content

Instantly share code, notes, and snippets.

@Arnot
Created August 14, 2017 14:34
Show Gist options
  • Save Arnot/4369f3fba6a8ad0107c27135be88c162 to your computer and use it in GitHub Desktop.
Save Arnot/4369f3fba6a8ad0107c27135be88c162 to your computer and use it in GitHub Desktop.
(defun arno/update-eclipse ()
(interactive)
(thread-last (eclim/project-list)
;; Get names from project list
(mapcar (lambda (p) (assoc-default 'name p)))
;; Remove unused projects to prevent eclipse from reopening them
(remove-if (lambda (s) (or (equal s "GantrySync") (equal s "SvgUtil"))))
;; Refresh the remaining projects
(eclim-project-refresh)))
(defun arno/update-eclipse ()
(interactive)
(eclim-project-refresh (remove-if (lambda (s)
(or (equal s "GantrySync")
(equal s "SvgUtil")))
(mapcar (lambda (p)
(assoc-default 'name p))
(eclim/project-list)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment