js-mode is fixed. perspective stuff is atumatically started.
This commit is contained in:
parent
3dc264f2df
commit
9d36d3a279
11
init.el
11
init.el
@ -274,7 +274,6 @@ buffer is not visiting a file."
|
|||||||
(cond ((eq system-type 'darwin) 'notification-center)
|
(cond ((eq system-type 'darwin) 'notification-center)
|
||||||
((eq system-type 'gnu/linux) 'notify-send)))
|
((eq system-type 'gnu/linux) 'notify-send)))
|
||||||
|
|
||||||
|
|
||||||
(defun project-root-of-file (filename)
|
(defun project-root-of-file (filename)
|
||||||
"Retrieves the root directory of a project if available.
|
"Retrieves the root directory of a project if available.
|
||||||
The current directory is assumed to be the project's root otherwise."
|
The current directory is assumed to be the project's root otherwise."
|
||||||
@ -370,7 +369,7 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
:config
|
:config
|
||||||
(progn
|
(progn
|
||||||
(setq guide-key/guide-key-sequence
|
(setq guide-key/guide-key-sequence
|
||||||
'("C-c" "C-c p" "C-x C-k" "C-x r" "C-h" "C-x c"))
|
'("C-c" "C-c p" "C-x C-k" "C-x r" "C-h" "C-x c" "C-x x"))
|
||||||
(guide-key-mode 1)
|
(guide-key-mode 1)
|
||||||
(diminish 'guide-key-mode)
|
(diminish 'guide-key-mode)
|
||||||
(setq guide-key/idle-delay 0.25)
|
(setq guide-key/idle-delay 0.25)
|
||||||
@ -583,6 +582,7 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
(if arg "* TODO %? %A\n" nil)))))
|
(if arg "* TODO %? %A\n" nil)))))
|
||||||
|
|
||||||
;; variable configuration
|
;; variable configuration
|
||||||
|
(add-to-list 'org-modules 'org-habit)
|
||||||
(setq org-src-fontify-natively t)
|
(setq org-src-fontify-natively t)
|
||||||
(setq org-habit-graph-column 50)
|
(setq org-habit-graph-column 50)
|
||||||
(setq org-habit-show-habits-only-for-today t)
|
(setq org-habit-show-habits-only-for-today t)
|
||||||
@ -924,6 +924,10 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
|
|
||||||
(use-package helm-swoop :ensure t :commands helm-swoop)
|
(use-package helm-swoop :ensure t :commands helm-swoop)
|
||||||
|
|
||||||
|
(use-package perspective
|
||||||
|
:ensure t
|
||||||
|
:config (persp-mode))
|
||||||
|
|
||||||
(use-package projectile
|
(use-package projectile
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands projectile-global-mode
|
:commands projectile-global-mode
|
||||||
@ -1123,10 +1127,13 @@ The current directory is assumed to be the project's root otherwise."
|
|||||||
(use-package js2-mode
|
(use-package js2-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands (js-mode)
|
:commands (js-mode)
|
||||||
|
:mode "\\.js\\'"
|
||||||
:bind
|
:bind
|
||||||
(("C-c b" . web-beautify-js))
|
(("C-c b" . web-beautify-js))
|
||||||
:init
|
:init
|
||||||
(progn
|
(progn
|
||||||
|
(setq js2-bounce-indent-p t)
|
||||||
|
(setq js2-basic-offset 2)
|
||||||
(use-package skewer-mode
|
(use-package skewer-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands skewer-mode)
|
:commands skewer-mode)
|
||||||
|
Loading…
Reference in New Issue
Block a user