emacs

Emacs rearrange split panes

本小妞迷上赌 提交于 2021-02-20 06:46:08
问题 If I'm working in (terminal) Emacs and have 2 buffers on screen using a horizontal split: +--------------------------+ | | | | | | | | +--------------------------+ | | | | | | | | +--------------------------+ Then I decide to open the slime repl, Emacs will split one of those horizontal panes vertically: +--------------------------+ | | | | | | | | +-------------+------------+ | | | | | slime | | | | | | | +-------------+------------+ But what I want is to have slime on the right, using the

SLIME on Emacs with paredit in repl - how to prevent execution of incomplete but balanced expressions?

时光总嘲笑我的痴心妄想 提交于 2021-02-20 06:38:46
问题 I use paredit on emacs with SLIME's repl. This means that at any point during my typing on the repl, my s-expressions are balanced. However, they may not be complete, and I might want to continue typing inside them in another line, as follows: CL-USER> (defun print-hello () ) When I start a new line by pressing the enter key, however, the SLIME repl executes my incomplete expression. I want it to wait for me to complete the expression, as follows: CL-USER> (defun print-hello () (format t

SLIME on Emacs with paredit in repl - how to prevent execution of incomplete but balanced expressions?

我的未来我决定 提交于 2021-02-20 06:35:34
问题 I use paredit on emacs with SLIME's repl. This means that at any point during my typing on the repl, my s-expressions are balanced. However, they may not be complete, and I might want to continue typing inside them in another line, as follows: CL-USER> (defun print-hello () ) When I start a new line by pressing the enter key, however, the SLIME repl executes my incomplete expression. I want it to wait for me to complete the expression, as follows: CL-USER> (defun print-hello () (format t

Configure jedi not to auto-complete automatically?

蓝咒 提交于 2021-02-19 05:44:39
问题 I have jedi-mode installed in emacs for python editing because I find C-. and C-, very useful for jumping to definitions and back. Automatic auto-completion, however, is not something I want. As I try to use emacs with jedi installed, it is continually trying to jump in with suggestions and bring up popups. How can I configure jedi so that it only does things in response to specific invocations, and not in response to typing or cursor movement? I've tried setting (setq jedi:complete-on-dot

Org-Mode - How do I create a new file with org-capture?

别来无恙 提交于 2021-02-18 11:29:09
问题 I want to create an org-capture template that create a dynamic file name for capture in emacs org-mode. I want that the name of the file takes the following form: (format-time-string "%Y-%m-%d") "-" (prompt for a name) ".txt" Example : 2012-08-10-MyNewFile.txt Based on this answer, I know how to dynamically create the name the file to include the date: `(defun capture-report-date-file (path) (expand-file-name (concat path (format-time-string "%Y-%m-%d") ".txt"))) '(("t" "todo" entry (file

盘点全球最厉害的 14 位程序员大神,请收下我的膝盖~

巧了我就是萌 提交于 2021-02-18 09:50:08
全球最厉害的14位程序员是谁,您知道的有几位呢? 以下排名不分先后: 1. Jon Skeet 个人名望: 程序技术问答网站Stack Overflow总排名第一的大神,每月的问答量保持在425个左右。 个人简介/主要荣誉: 谷歌软件工程师,代表作有《深入理解C#(C# In Depth)》。 网络上对Jon Skeet的评价: “他根本不需要调试器,只要他盯一下代码,错误之处自会原形毕露。” “如果他的代码没有通过编译的时候,编译器就会道歉。” “他根本不需要什么编程规范,他的代码就是编程规范。” 2. Gennady Korotkevich 个人声望: 编程大赛神童 个人简介/主要荣誉: 年仅11岁时便参加国际信息学奥林比克竞赛,创造了最年轻选手的记录。在2007-2012年间,总共取得6枚奥赛金牌;2013年美国计算机协会编程比赛冠军队成员;2014年Facebook黑客杯冠军得主。截止目前,稳居俄编程网站Codeforces声望第一的宝座,在TopCoder算法竞赛中暂列榜眼位置。 网络上对Gennady Korotkevich的评价: “一个编程神童。” “他太令人惊讶了,他相当于我在白俄罗斯建立了一支强大的编程队伍” “彻底的编程天才” 3. Linus Torvalds 个人名望: Linux之父 个人简介/主要荣誉: Linux和Git之父,一个开源的操作系统;

Build Emacs with X support

一个人想着一个人 提交于 2021-02-17 21:44:51
问题 I am trying to build Emacs 24.0.94 with X support on a 64-bit SUSE Linux (10.2 Enterprise release) box. I see that the X11 libraries are installed in /usr/lib/X11R6 and I am telling the configure script to look for them in that location: --x-includes=/usr/X11R6/include:/usr/include --x-libraries=/usr/X11R6/lib64:/usr/lib64 Even with the above options, the configure script complains that it cannot find any X toolkit: checking X11 version 6... before 6 checking for pkg-config... (cached) /usr

Build Emacs with X support

邮差的信 提交于 2021-02-17 21:44:24
问题 I am trying to build Emacs 24.0.94 with X support on a 64-bit SUSE Linux (10.2 Enterprise release) box. I see that the X11 libraries are installed in /usr/lib/X11R6 and I am telling the configure script to look for them in that location: --x-includes=/usr/X11R6/include:/usr/include --x-libraries=/usr/X11R6/lib64:/usr/lib64 Even with the above options, the configure script complains that it cannot find any X toolkit: checking X11 version 6... before 6 checking for pkg-config... (cached) /usr

displaying recent keystrokes in emacs

≯℡__Kan透↙ 提交于 2021-02-15 11:00:54
问题 How do I recover the most recent keystrokes I just typed in Emacs? I'm a long-time Emacs user (30 years), but every so often I mistype a key sequence, something strange happens, and I want to know what sequence of chars I typed, compared with what I thought I typed. I know there's a command that shows a couple dozen of the most recent chars I typed, but I can't remember what it is, and I can't seem to find it either. For example, sometimes in dired-mode , I move the cursor to a file, and I

displaying recent keystrokes in emacs

浪子不回头ぞ 提交于 2021-02-15 10:56:23
问题 How do I recover the most recent keystrokes I just typed in Emacs? I'm a long-time Emacs user (30 years), but every so often I mistype a key sequence, something strange happens, and I want to know what sequence of chars I typed, compared with what I thought I typed. I know there's a command that shows a couple dozen of the most recent chars I typed, but I can't remember what it is, and I can't seem to find it either. For example, sometimes in dired-mode , I move the cursor to a file, and I