Configure tramp and javascript IDE
This commit is contained in:
parent
d86f07a002
commit
c48d9754c6
6 changed files with 30 additions and 7 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -7,3 +7,4 @@ recentf
|
||||||
.python-environments*
|
.python-environments*
|
||||||
TAGS
|
TAGS
|
||||||
eshell/history
|
eshell/history
|
||||||
|
tramp
|
||||||
|
|
|
||||||
22
01mac.el
22
01mac.el
|
|
@ -1,3 +1,10 @@
|
||||||
|
;;;;;;;;; GC configuration ;;;;;;;;;;;;;;;;;;;
|
||||||
|
(setq gc-cons-threshold 50000000)
|
||||||
|
|
||||||
|
|
||||||
|
;;;;;;;;; TRAMP configuration ;;;;;;;;;;;;;;;;
|
||||||
|
(setq tramp-default-method "ssh")
|
||||||
|
|
||||||
;;;;;;;;; Emacs bindings ;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;; Emacs bindings ;;;;;;;;;;;;;;;;;;;;;
|
||||||
(global-set-key (kbd "RET") 'newline)
|
(global-set-key (kbd "RET") 'newline)
|
||||||
|
|
||||||
|
|
@ -34,11 +41,6 @@
|
||||||
(interactive)
|
(interactive)
|
||||||
(ansi-term "/bin/zsh" "ANSI-Term : Zsh")))
|
(ansi-term "/bin/zsh" "ANSI-Term : Zsh")))
|
||||||
|
|
||||||
;;; Get rid of bad parts of the windows
|
|
||||||
(menu-bar-mode -1)
|
|
||||||
(tool-bar-mode -1)
|
|
||||||
(scroll-bar-mode -1)
|
|
||||||
|
|
||||||
;#====================== Backup config #==============================
|
;#====================== Backup config #==============================
|
||||||
(setq backup-directory-alist
|
(setq backup-directory-alist
|
||||||
`((".*" . "~/.emacs_backups/auto-save-list")))
|
`((".*" . "~/.emacs_backups/auto-save-list")))
|
||||||
|
|
@ -93,3 +95,13 @@
|
||||||
|
|
||||||
;; Disable meta on right alt (useful for Polish characters)
|
;; Disable meta on right alt (useful for Polish characters)
|
||||||
(setq ns-right-alternate-modifier nil)
|
(setq ns-right-alternate-modifier nil)
|
||||||
|
|
||||||
|
;;; Get rid of bad parts of the windows
|
||||||
|
(menu-bar-mode -1)
|
||||||
|
(tool-bar-mode -1)
|
||||||
|
(scroll-bar-mode -1)
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;; Record frequency of different commands. Review them later
|
||||||
|
(require 'keyfreq)
|
||||||
|
(keyfreq-mode 1)
|
||||||
|
(keyfreq-autosave-mode 1)
|
||||||
|
|
|
||||||
2
02ivy.el
2
02ivy.el
|
|
@ -1,7 +1,7 @@
|
||||||
(setq-default ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
|
(setq-default ivy-use-virtual-buffers t ;; Display recent files in ivy-switch-buffer
|
||||||
ivy-count-format "(%d of %d) " ;; Current candidate count style
|
ivy-count-format "(%d of %d) " ;; Current candidate count style
|
||||||
ivy-display-style 'fancy ;; Formatting style
|
ivy-display-style 'fancy ;; Formatting style
|
||||||
ivy-re-builders-alist '((t . ivy--regex-fuzzy))) ;; Use fuzzy matching
|
)
|
||||||
|
|
||||||
(global-set-key (kbd "C-c a") 'counsel-ag)
|
(global-set-key (kbd "C-c a") 'counsel-ag)
|
||||||
(global-set-key (kbd "C-c b") 'ivy-switch-buffer)
|
(global-set-key (kbd "C-c b") 'ivy-switch-buffer)
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@
|
||||||
company-elisp ; Emacs Lisp
|
company-elisp ; Emacs Lisp
|
||||||
company-clang company-cmake ;; C
|
company-clang company-cmake ;; C
|
||||||
company-robe ;; Ruby
|
company-robe ;; Ruby
|
||||||
|
company-tern ;; Javascript
|
||||||
company-ansible ;; Ansible
|
company-ansible ;; Ansible
|
||||||
alchemist-company ;; Elixir
|
alchemist-company ;; Elixir
|
||||||
company-racer ;; Rust
|
company-racer ;; Rust
|
||||||
|
|
|
||||||
5
20web.el
5
20web.el
|
|
@ -0,0 +1,5 @@
|
||||||
|
;; Use js2-mode for javascript editing
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
|
||||||
|
|
||||||
|
;; Tern is used for completion
|
||||||
|
(add-hook 'js2-mode-hook 'tern-mode)
|
||||||
6
init.el
6
init.el
|
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
;; list the packages you want
|
;; list the packages you want
|
||||||
(setq package-list '(
|
(setq package-list '(
|
||||||
|
keyfreq ;; Record how often emacs commands are executed
|
||||||
exec-path-from-shell ;; Allow to execute path from shell
|
exec-path-from-shell ;; Allow to execute path from shell
|
||||||
|
|
||||||
rainbow-delimiters ;; Colorize matching parens
|
rainbow-delimiters ;; Colorize matching parens
|
||||||
|
|
@ -66,6 +67,9 @@
|
||||||
;; Web
|
;; Web
|
||||||
web-mode
|
web-mode
|
||||||
company-web
|
company-web
|
||||||
|
js2-mode
|
||||||
|
tern
|
||||||
|
company-tern
|
||||||
|
|
||||||
;; Infrastructure files
|
;; Infrastructure files
|
||||||
dockerfile-mode
|
dockerfile-mode
|
||||||
|
|
@ -110,7 +114,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
|
||||||
(company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
(indium js2-mode keyfreq company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
||||||
(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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue