Skip to content

Commit 9c319ef

Browse files
committed
fix tab key in ansi-term
1 parent b49f1c5 commit 9c319ef

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

config/omnisharp.el

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
(defun my-csharp-mode ()
4747
(add-to-list 'company-backends 'company-omnisharp)
48+
(yas-minor-mode)
4849
(omnisharp-mode)
4950
(company-mode)
5051
(flycheck-mode)

init.el

+14-3
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
177177
(setq yas-snippet-dirs
178178
'("~/.emacs.d/yasnippet-csharp"))
179179

180-
(yas-global-mode 1)
181-
182180
(defun dos2unix (buffer)
183181
"Automate M-% C-q C-m RET C-q C-j RET"
184182
(interactive "*b")
@@ -222,7 +220,6 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
222220
(global-set-key [(control shift tab)] 'unbury-buffer)
223221
(global-set-key (kbd "C-M-<left>") 'er/expand-region)
224222
(global-set-key (kbd "C-M-<right>") 'er/contract-region)
225-
(global-set-key (kbd "<tab>") 'tab-indent-or-complete)
226223
;; enable ctrl-s to wrap around seeing as we disabled ctrl-r
227224
(defadvice isearch-repeat (after isearch-no-fail activate)
228225
(unless isearch-success
@@ -323,3 +320,17 @@ then it takes a second \\[keyboard-quit] to abort the minibuffer."
323320
(load (file-name-sans-extension fullpath)))))))
324321
(load-directory "~/.emacs.d/config")
325322

323+
;; (add-hook 'term-mode-hook 'evil-emacs-state)
324+
325+
(defun my-term-use-utf8 ()
326+
(set-buffer-process-coding-system 'utf-8-unix 'utf-8-unix))
327+
328+
(add-hook 'term-exec-hook 'my-term-use-utf8)
329+
330+
(defun my-term-hook ()
331+
(goto-address-mode)
332+
(define-key term-raw-map "\C-y" 'my-term-paste))
333+
334+
(add-hook 'term-mode-hook 'my-term-hook)
335+
336+
(setq system-uses-terminfo nil)

0 commit comments

Comments
 (0)