Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/oop/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
tmux覆盖emacs快捷方式_Emacs_Keyboard Shortcuts_Tmux_Tty - Fatal编程技术网

tmux覆盖emacs快捷方式

tmux覆盖emacs快捷方式,emacs,keyboard-shortcuts,tmux,tty,Emacs,Keyboard Shortcuts,Tmux,Tty,所以我已经搜索了大约40分钟,但没有成功,“C-x”对大多数搜索引擎来说都是晦涩难懂的,这一点帮助都没有。 几周前,我将tmux与控制台内的emacs结合使用,一切都很好。后来有一段时间我没有这样做,现在我在定制了一点我的tmux之后又回到了这个配置上——我想要一个完全没有分心的工作环境,tmux TTY似乎是一个很好的地方。现在的问题是,当我输入C-x emacs时,它不再拾取,你们可以猜,这是非常烦人的。 我真的不知道为什么它不起作用,我敢肯定我没有设置任何与此命令重叠的内容。 当然,它在t

所以我已经搜索了大约40分钟,但没有成功,“C-x”对大多数搜索引擎来说都是晦涩难懂的,这一点帮助都没有。 几周前,我将tmux与控制台内的emacs结合使用,一切都很好。后来有一段时间我没有这样做,现在我在定制了一点我的tmux之后又回到了这个配置上——我想要一个完全没有分心的工作环境,tmux TTY似乎是一个很好的地方。现在的问题是,当我输入C-x emacs时,它不再拾取,你们可以猜,这是非常烦人的。 我真的不知道为什么它不起作用,我敢肯定我没有设置任何与此命令重叠的内容。 当然,它在tmux之外工作。因此,这肯定与它有冲突,但为什么呢?如何在不重新映射emacs命令的情况下解决此问题

另一方面,我读到TTY中不可能有256色模式,真的没有办法吗/

编辑:关于256色TTY,我看到一些帖子建议使用fbterm或其他终端,但所有引用的都过时了。真的没有别的办法吗?此外,我一直在尝试使用unicode字符,但答案要么与256色相同,要么与当前版本的Fedora 28不起作用的配置相同

这是我的.tmux.conf

# Reload config using C-b r
bind r source-file ~/.tmux.conf

# split panes using | and -
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %

# switch panes using Ctrl-arrow without prefix
bind -n C-Left select-pane -L
bind -n C-Right select-pane -R
bind -n C-Up select-pane -U
bind -n C-Down select-pane -D
bind-key -r x kill-pane

# Resize panes
bind -n M-< resize-pane -L 5
bind -n M-> resize-pane -R 5
bind -n M-w resize-pane -U 5
bind -n M-W resize-pane -D 5

# Enable mouse control (clickable windows, panes, resizable panes)
set -g mouse on
set -g pane-border-fg colour8
set -g pane-active-border-fg colour7
set -g pane-active-border-bg default

# Status bar
set -g status-position top
#使用C-BR重新加载配置
绑定r源文件~/.tmux.conf
#使用|和拆分窗格-
绑定|拆分窗口-h
绑定-拆分窗口-v
解绑'
解除绑定%
#使用不带前缀的Ctrl箭头切换窗格
绑定-n C-左选择窗格-L
绑定-n C-右选择窗格-R
绑定-n C-Up选择窗格-U
绑定-n C-Down选择窗格-D
绑定密钥-r x kill窗格
#调整窗格大小
绑定-n M-<调整窗格大小-L 5
绑定-n M->调整窗格大小-R 5
绑定-n M-w调整窗格大小-U 5
绑定-n M-W调整窗格大小-D 5
#启用鼠标控制(可单击的窗口、窗格、可调整大小的窗格)
将-g鼠标置于
设置-g窗格边框fg颜色8
设置-g窗格活动边框fg颜色7
设置-g窗格活动边框bg默认值
#状态栏
设置-g状态位置顶部
这是我的.emacs

;; .emacs


;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)

(add-to-list 'package-archives
             '("melpa-stable" . "https://stable.melpa.org/packages/") t)

;; Irony
(add-hook 'after-init-hook 'global-company-mode)
;; Always start smartparens mode in js-mode.
;(add-hook 'js-mode-hook #'smartparens-mode)

;; Company-Irony backend
(eval-after-load 'company
  '(add-to-list 'company-backends 'company-irony))

(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(ansi-color-faces-vector
   [default default default italic underline success warning error])
 '(column-number-mode t)
 '(cua-mode t nil (cua-base))
 '(custom-enabled-themes (quote (misterioso)))
 '(diff-switches "-u")
 '(package-selected-packages
   (quote
    (company-irony flycheck-irony company irony autopair which-key w3)))
 '(show-paren-mode t))

;;
;; Epitech configuration
;;
(add-to-list 'load-path "~/.emacs.d/lisp")
(load "site-start.d/epitech-init.el")
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

;; Add a "lines" column
(global-linum-mode t)
(setq linum-format "%4d \u2502 ")

;; `lines-tail`, highlight the part that goes beyond the
;; limit of `whitespace-line-column`
(require 'whitespace)
(setq whitespace-style '(face empty tabs lines-tail trailing))
(global-whitespace-mode t)

;; Auto whitespace-cleanup
(add-hook 'before-save-hook #'whitespace-cleanup)

;; Set TAB behaviour
;; TABS should AWLAYS be spaces
(setq-default indent-tabs-mode nil)
;; Make TABS 4 spaces
(setq default-tab-width 4)

;; Autopair
(electric-pair-mode)

;; Fix "<<EOF \n<" issue in bash mode
(add-hook 'sh-mode-hook (lambda () (sh-electric-here-document-mode -1)))

;; Add in-terminal mouse support
(when (eq window-system nil)
  (xterm-mouse-mode t))
;;.emacs
;由Package.el添加。这必须在
;已安装的软件包。不要删除此行。如果不需要,
只需在行首加一个分号就可以了。
;您可以删除这些解释性注释。
(包初始化)
(添加到“文件包档案”列表中
“(“梅尔帕稳定”https://stable.melpa.org/packages/)t)
讽刺
(在全局公司模式下,在初始钩子后添加钩子)
;始终在js模式下启动smartparens模式。
(添加hook'js mode hook#'smartparens-mode)
公司反讽
(装载后评估)公司
(加入"公司后台"公司讽刺))
(自定义设置变量)
;自定义设置变量由自定义添加。
如果你手工编辑,可能会把它弄糟,所以要小心。
;init文件应该只包含一个这样的实例。
如果不止一个,它们就不能正常工作。
'(ansi颜色面向量
[默认斜体下划线成功警告错误])
'(列编号模式t)
'(cua模式t零(cua基))
'(自定义启用的主题(引号(misterioso)))
'(差动开关“-u”)
"(打包选定的包)
(引述
(公司irony flycheck irony公司irony autopair哪个键w3)))
'(显示paren模式t))
;;
外延结构
;;
(添加到列表“加载路径”~/.emacs.d/lisp”)
(加载“站点启动d/外延初始el”)
(自定义设置面)
;自定义集面是由自定义添加的。
如果你手工编辑,可能会把它弄糟,所以要小心。
;init文件应该只包含一个这样的实例。
如果不止一个,它们就不能正常工作。
)
;添加一个“行”列
(全局linum模式t)
(setq linum格式“%4d\u2502”)
;“lines tail”,突出显示超出尾部的部分
;;限制`空白行列`
(需要“空白”)
(setq空白样式(面空制表符线尾随))
(全局空白模式t)
自动清除空白
(在保存钩子之前添加钩子#空格清理)
设置选项卡行为
;;制表符应为空格
(setq默认缩进制表符模式nil)
将制表符设为4个空格
(setq默认选项卡宽度4)
自动驾驶
(电对模式)

;Fix“我解除了C-x的绑定,但它不起作用,所以我把解除绑定的功能放在了我的配置文件中。现在,我启动了一个新会话,并返回到这个问题上,它工作得很好。案例结束。

也许C-x与tmux中的某些东西绑定在一起。你试过解开它吗?我肯定我试过了,但它不起作用。我再试一次。编辑:我刚刚打开了.tmux.conf,在发布“unbind C-x”后,我似乎尝试了一下,它就在r的绑定下。现在它工作了。。。奇怪的