emacs
This commit is contained in:
parent
afa311540f
commit
f2801cae75
@ -23,7 +23,7 @@
|
|||||||
;; If there is more than one, they won't work right.
|
;; If there is more than one, they won't work right.
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(quote
|
||||||
(elpy importmagic py-autopep8 flycheck excorporate ivy nginx-mode helm-projectile projectile json-mode jinja2-mode company-terraform terraform-mode yaml-mode company racer rust-mode magit theme-looper myterminal-controls meta-presenter which-key dired-launch material-theme neotree undo-tree ztree buffer-move powerline ace-window ace-jump-mode multiple-cursors helm))))
|
(vue-mode jedi-direx multi-web-mode web-mode quack elpy importmagic py-autopep8 flycheck excorporate ivy nginx-mode helm-projectile projectile json-mode jinja2-mode company-terraform terraform-mode yaml-mode company racer rust-mode magit theme-looper myterminal-controls meta-presenter which-key dired-launch material-theme neotree undo-tree ztree buffer-move powerline ace-window ace-jump-mode multiple-cursors helm))))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
@ -1,2 +1,13 @@
|
|||||||
(setq auto-mode-alist (append '(("\\.sls$" . yaml-mode))
|
(setq auto-mode-alist (append '(("\\.sls$" . yaml-mode))
|
||||||
auto-mode-alist))
|
auto-mode-alist))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(defvar dwlisp-mode-hook nil)
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.lisp\\'" . dwlisp-mode))
|
||||||
|
|
||||||
|
(define-derived-mode dwlisp-mode
|
||||||
|
lisp-mode "dwlisp"
|
||||||
|
"major mode for dwlisp"
|
||||||
|
(setq lisp-body-indent 2))
|
||||||
|
@ -28,7 +28,9 @@
|
|||||||
("s-=" . text-scale-increase)
|
("s-=" . text-scale-increase)
|
||||||
("C-c m" . magit-status)
|
("C-c m" . magit-status)
|
||||||
("C-c g" . helm-projectile-grep)
|
("C-c g" . helm-projectile-grep)
|
||||||
|
("C-S-s" . helm-occur)
|
||||||
("C-c b" . helm-semantic-or-imenu)
|
("C-c b" . helm-semantic-or-imenu)
|
||||||
|
("C-c j" . helm-all-mark-rings)
|
||||||
))
|
))
|
||||||
|
|
||||||
(defun super-emacs-apply-keyboard-bindings (pair)
|
(defun super-emacs-apply-keyboard-bindings (pair)
|
||||||
@ -38,3 +40,7 @@
|
|||||||
|
|
||||||
(mapc 'super-emacs-apply-keyboard-bindings
|
(mapc 'super-emacs-apply-keyboard-bindings
|
||||||
super-emacs--my-keyboard-bindings)
|
super-emacs--my-keyboard-bindings)
|
||||||
|
|
||||||
|
(add-hook 'python-mode-hook (lambda ()
|
||||||
|
(local-set-key (kbd "C-c i") (lambda () (interactive) (
|
||||||
|
insert "import pdb; pdb.set_trace()")))))
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
(t (message "You're not editing a file!"))))
|
(t (message "You're not editing a file!"))))
|
||||||
|
|
||||||
;Disable splash message, start *scratch* buffer by default
|
;Disable splash message, start *scratch* buffer by default
|
||||||
(setq initial-buffer-choice
|
(setq inhibit-startup-screen t
|
||||||
t)
|
initial-buffer-choice nil)
|
||||||
(setq initial-scratch-message
|
(setq initial-scratch-message
|
||||||
"")
|
"")
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
;Enable whitespace mode
|
;Enable whitespace mode
|
||||||
(global-whitespace-mode)
|
(global-whitespace-mode)
|
||||||
(setq whitespace-line-column 125)
|
(setq whitespace-line-column 500)
|
||||||
|
|
||||||
;Enable winner-mode
|
;Enable winner-mode
|
||||||
(winner-mode t)
|
(winner-mode t)
|
||||||
@ -31,6 +31,8 @@
|
|||||||
;;keep search highlight
|
;;keep search highlight
|
||||||
(setq lazy-highlight-cleanup nil)
|
(setq lazy-highlight-cleanup nil)
|
||||||
|
|
||||||
|
;turn off bell
|
||||||
|
(setq ring-bell-function 'ignore)
|
||||||
|
|
||||||
|
|
||||||
;;cleanup buffers
|
;;cleanup buffers
|
||||||
|
@ -122,12 +122,16 @@
|
|||||||
"*.tar.gz"
|
"*.tar.gz"
|
||||||
"*.tgz"
|
"*.tgz"
|
||||||
"*.zip"
|
"*.zip"
|
||||||
|
"*.o"
|
||||||
)
|
)
|
||||||
projectile-globally-ignored-files))
|
projectile-globally-ignored-files))
|
||||||
(setq projectile-globally-ignored-directories
|
(setq projectile-globally-ignored-directories
|
||||||
(append '(
|
(append '(
|
||||||
".git"
|
".git"
|
||||||
".svn"
|
".svn"
|
||||||
|
".idea"
|
||||||
|
".vscode"
|
||||||
|
"node_modules"
|
||||||
)
|
)
|
||||||
projectile-globally-ignored-directories))
|
projectile-globally-ignored-directories))
|
||||||
)))
|
)))
|
||||||
@ -139,4 +143,4 @@
|
|||||||
;; (add-to-list 'elpy-default-minor-modes 'flycheck-mode))
|
;; (add-to-list 'elpy-default-minor-modes 'flycheck-mode))
|
||||||
|
|
||||||
;;flycheck
|
;;flycheck
|
||||||
(setq flycheck-flake8-maximum-line-length 125)
|
(setq flycheck-flake8-maximum-line-length 500)
|
||||||
|
33
slate.js
33
slate.js
@ -57,6 +57,11 @@ var topLeft = S.op("corner", {
|
|||||||
"width": "screenSizeX/2",
|
"width": "screenSizeX/2",
|
||||||
"height": "screenSizeY/2"
|
"height": "screenSizeY/2"
|
||||||
});
|
});
|
||||||
|
var topLeftShort = S.op("corner", {
|
||||||
|
"direction": "top-left",
|
||||||
|
"width": "screenSizeX/2",
|
||||||
|
"height": "screenSizeY/4"
|
||||||
|
});
|
||||||
|
|
||||||
var topRight = S.op("corner", {
|
var topRight = S.op("corner", {
|
||||||
"direction": "top-right",
|
"direction": "top-right",
|
||||||
@ -68,6 +73,12 @@ var bottomLeft = S.op("corner", {
|
|||||||
"width": "screenSizeX/2",
|
"width": "screenSizeX/2",
|
||||||
"height": "screenSizeY/2"
|
"height": "screenSizeY/2"
|
||||||
});
|
});
|
||||||
|
var bottomLeftTall = S.op("corner", {
|
||||||
|
"direction": "bottom-left",
|
||||||
|
"width": "screenSizeX/2",
|
||||||
|
"height": "screenSizeY*0.63"
|
||||||
|
});
|
||||||
|
|
||||||
var bottomRight = S.op("corner", {
|
var bottomRight = S.op("corner", {
|
||||||
"direction": "bottom-right",
|
"direction": "bottom-right",
|
||||||
"width": "screenSizeX/2",
|
"width": "screenSizeX/2",
|
||||||
@ -147,7 +158,7 @@ var threeMonitorLayout = slate.layout("threeMonitor", {
|
|||||||
"Slack": {
|
"Slack": {
|
||||||
"operations": [function(wo) {
|
"operations": [function(wo) {
|
||||||
wo.doOperation(moveScreen0);
|
wo.doOperation(moveScreen0);
|
||||||
wo.doOperation(topLeft);
|
wo.doOperation(topLeftShort);
|
||||||
}],
|
}],
|
||||||
"main-first": true,
|
"main-first": true,
|
||||||
"ignore-fail": true,
|
"ignore-fail": true,
|
||||||
@ -156,7 +167,7 @@ var threeMonitorLayout = slate.layout("threeMonitor", {
|
|||||||
"Microsoft Outlook": {
|
"Microsoft Outlook": {
|
||||||
"operations": [function(wo) {
|
"operations": [function(wo) {
|
||||||
wo.doOperation(moveScreen0);
|
wo.doOperation(moveScreen0);
|
||||||
wo.doOperation(bottomLeft);
|
wo.doOperation(bottomLeftTall);
|
||||||
}],
|
}],
|
||||||
"main-first": true,
|
"main-first": true,
|
||||||
"ignore-fail": false,
|
"ignore-fail": false,
|
||||||
@ -202,6 +213,24 @@ var threeMonitorLayout = slate.layout("threeMonitor", {
|
|||||||
"main-first": true,
|
"main-first": true,
|
||||||
"ignore-fail": true,
|
"ignore-fail": true,
|
||||||
"repeat": true
|
"repeat": true
|
||||||
|
},
|
||||||
|
"Emacs": {
|
||||||
|
"operations": [function(wo) {
|
||||||
|
wo.doOperation(moveScreen2);
|
||||||
|
wo.doOperation(topHalf);
|
||||||
|
}],
|
||||||
|
"main-first": true,
|
||||||
|
"ignore-fail": true,
|
||||||
|
"repeat": true
|
||||||
|
},
|
||||||
|
"iTerm2": {
|
||||||
|
"operations": [function(wo) {
|
||||||
|
wo.doOperation(moveScreen2);
|
||||||
|
wo.doOperation(bottomHalf);
|
||||||
|
}],
|
||||||
|
"main-first": true,
|
||||||
|
"ignore-fail": true,
|
||||||
|
"repeat": true
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user