Browse Source

Update

master
10sr 3 years ago
parent
commit
58107b52fe
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      emacs.el

+ 8
- 0
emacs.el View File

@@ -2568,6 +2568,13 @@ ARG is num to show, or defaults to 7."
(define-key ctl-x-map "T" 'git-worktree) (define-key ctl-x-map "T" 'git-worktree)
(define-key ctl-x-map "W" 'git-walktree) (define-key ctl-x-map "W" 'git-walktree)


(defun mkcdd ()
"Make date directory and open it with dired."
(interactive)
(let ((d (format-time-string "%Y%m%d-%H%M%S")))
(make-directory d)
(find-file d)))

(when (fboundp 'browse-url-default-macosx-browser) (when (fboundp 'browse-url-default-macosx-browser)
(defalias 'browse-osx 'browse-url-default-macosx-browser)) (defalias 'browse-osx 'browse-url-default-macosx-browser))


@@ -2997,6 +3004,7 @@ ARGS are not used."
;; (set-variable 'eglot-extend-to-xref t)) ;; (set-variable 'eglot-extend-to-xref t))


(set-variable 'lsp-python-ms-auto-install-server t) (set-variable 'lsp-python-ms-auto-install-server t)
(set-variable 'lsp-python-ms-parse-dot-env-enabled t)
(set-variable 'lsp-python-ms-python-executable-cmd "python3") (set-variable 'lsp-python-ms-python-executable-cmd "python3")
(add-hook 'python-mode-hook #'my-lsp-python-setup) (add-hook 'python-mode-hook #'my-lsp-python-setup)




Loading…
Cancel
Save