From 3fc7b413b7ff77b0a5b0285e61a87301a3db587e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Fri, 10 Jan 2020 15:07:59 +0100 Subject: [PATCH] [emacs] Modification for emacs. --- .emacs.d/elisp/init-dashboard.el | 23 +++++++++++------------ .emacs.d/elisp/init-python.el | 5 +++-- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.emacs.d/elisp/init-dashboard.el b/.emacs.d/elisp/init-dashboard.el index 2173865..253c911 100644 --- a/.emacs.d/elisp/init-dashboard.el +++ b/.emacs.d/elisp/init-dashboard.el @@ -47,34 +47,33 @@ (dashboard-startup-banner (expand-file-name "images/KEC_Dark_BK_Small.png" user-emacs-directory)) (dashboard-items '((recents . 7) - (bookmarks . 7) - (agenda . 5))) + (bookmarks . 7) + (agenda . 5))) (dashboard-set-heading-icons t) (dashboard-set-navigator t) + (initial-buffer-choice (lambda () (get-buffer dashboard-buffer-name))) (dashboard-navigator-buttons (if (featurep 'all-the-icons) `(((,(all-the-icons-octicon "mark-github" :height 1.1 :v-adjust -0.05) - "M-EMACS" "Browse M-EMACS Homepage" - (lambda (&rest _) (browse-url "https://github.com/MatthewZMD/.emacs.d"))) - (,(all-the-icons-fileicon "elisp" :height 1.0 :v-adjust -0.1) - "Configuration" "" (lambda (&rest _) (edit-configs))))) + "M-EMACS" "Browse M-EMACS Homepage" + (lambda (&rest _) (browse-url "https://github.com/MatthewZMD/.emacs.d"))) + (,(all-the-icons-fileicon "elisp" :height 1.0 :v-adjust -0.1) + "Configuration" "" (lambda (&rest _) (edit-configs))))) `((("" "M-EMACS" "Browse M-EMACS Homepage" - (lambda (&rest _) (browse-url "https://github.com/MatthewZMD/.emacs.d"))) - ("" "Configuration" "" (lambda (&rest _) (edit-configs))))))) + (lambda (&rest _) (browse-url "https://github.com/MatthewZMD/.emacs.d"))) + ("" "Configuration" "" (lambda (&rest _) (edit-configs))))))) :custom-face (dashboard-banner-logo-title ((t (:family "Love LetterTW" :height 123)))) :config - (if (< (length command-line-args) 2) - (initial-buffer-choice (lambda () (get-buffer dashboard-buffer-name)))) (dashboard-modify-heading-icons '((recents . "file-text") - (bookmarks . "book"))) + (bookmarks . "book"))) (dashboard-setup-startup-hook) ;; Open Dashboard function (defun open-dashboard () "Open the *dashboard* buffer and jump to the first widget." (interactive) (if (get-buffer dashboard-buffer-name) - (kill-buffer dashboard-buffer-name)) + (kill-buffer dashboard-buffer-name)) (dashboard-insert-startupify-lists) (switch-to-buffer dashboard-buffer-name) (goto-char (point-min)) diff --git a/.emacs.d/elisp/init-python.el b/.emacs.d/elisp/init-python.el index f8b0a50..1c54415 100644 --- a/.emacs.d/elisp/init-python.el +++ b/.emacs.d/elisp/init-python.el @@ -79,8 +79,9 @@ (add-hook 'python-mode-hook 'hs-minor-mode) (use-package ein - :init - (setq ein:polymode t) + :custom + (ein:polymode t) + (ein:use-auto-complete t) :commands (ein:notebooklist-open)) ;; LSPPythonPac