emacs

org-mode capture : dynamic file name

偶尔善良 提交于 2020-07-01 14:56:15
问题 I've seen this: How to type a dynamic file entry for org capture but cannot get it to work; I get "Invalid file location: nil". Has something changed in org-mode or in Emacs itself to stop this from working? Otherwise: suggestions for how to debug what has gone wrong? What I'm really trying to get working is what is described on this page: http://www.howardism.org/Technical/Emacs/journaling-org.html The capture template I'm interested in is the "Journal Note" one all the way at the bottom of

Tramp using ssh does not source .bash_profile / .profile

蹲街弑〆低调 提交于 2020-06-25 10:00:45
问题 I'm using Aquamacs (graphical emacs for OSX using emacs 24 and tramp version 2.2.3) to edit some files on a remote server. Tramp is set up to use ssh and works fine in terms of editing files. It fails when it comes to compiling because the compiler is not in the path. It seems like tramp does not source any of the profile files like .profile or .bash_profile . /bin/sh is a link to /bin/bash so bash should be the shell used by tramp. A shell started within emacs on the remote server won't

Sending emails with emacs24 via smtp with gnutls and extra arguments

老子叫甜甜 提交于 2020-06-24 07:54:29
问题 I have a rather weird problem with using sending out emails from emacs24 with my posteo email account, but everything seems to work just fine with gmail and gmx. This is the relevant part of my current .emacs configuration (it feels like I permuted it a million times with always the same results): (require 'smtpmail) (require 'starttls) (setq message-send-mail-function 'smtpmail-send-it) (setq tls-program '("gnutls-cli --priority NORMAL:%COMPAT -p %p %h")) (setq starttls-gnutls-program

How to untick checkboxes in org-mode for the next cyclic/repetitive task

浪尽此生 提交于 2020-06-24 07:20:45
问题 With cyclic or repetitive tasks in org-mode, inside this task, if there are several checkboxes and all of them marked as ticked, after the general task is masked as DONE, the checkboxes for the next cycle period stills appear as ticked and it should be unticked. e.g.: TODO Cyclic monthly home [0/5] SCHEDULED: <2013-11-30 Sat +1m> [ ] pay sauna [ ] pay electricity [ ] pay renting [ ] pay internet [ ] pay union Once I ticked all of them and put it as done, this is what I can see: WIP Cyclic

How to untick checkboxes in org-mode for the next cyclic/repetitive task

本小妞迷上赌 提交于 2020-06-24 07:20:36
问题 With cyclic or repetitive tasks in org-mode, inside this task, if there are several checkboxes and all of them marked as ticked, after the general task is masked as DONE, the checkboxes for the next cycle period stills appear as ticked and it should be unticked. e.g.: TODO Cyclic monthly home [0/5] SCHEDULED: <2013-11-30 Sat +1m> [ ] pay sauna [ ] pay electricity [ ] pay renting [ ] pay internet [ ] pay union Once I ticked all of them and put it as done, this is what I can see: WIP Cyclic

How to set the console's key binding in RStudio?

旧街凉风 提交于 2020-06-12 07:25:06
问题 I have set the keybindings to emacs in the RStudio's global option, but it seems didn't affect the console. Is there any way to set the console's keybinding to emacs? 回答1: Unfortunately no -- the active keybindings currently only take effect within the source editor. 来源: https://stackoverflow.com/questions/40457084/how-to-set-the-consoles-key-binding-in-rstudio

How to gracefully shutdown emacs daemon? [closed]

早过忘川 提交于 2020-06-09 07:43:56
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . On login to Ubuntu, I start an Emacs (version 23) daemon using Ubuntu's Startup programs. I then start Emacs clients whenever I need to edit something. When I logoff from Ubuntu, it says Emacs is still running, of course. I need to attach a script somewhere to tell Gnome to shutdown

使用 python 扩展 emacs

随声附和 提交于 2020-05-07 21:34:43
Pymacs 可以使得emacs能和python程序进行交互,可以让emacs插件开发者尽量使用python进行开发。这里提供一个例子,在lisp中调用python的函数并将当前buffer的文件名传递给python,在emacs中输出python函数的返回值 安装 首先安装 python 包 Pymacs. 在 ubuntu 里面安装 pymacs 即可。 然后安装emacs插件pymacs, el-get-install 或者 package-install 都可以 写一个 python 模块 目录结构如下: ├── sample │ └── __init__.py └── setup.py __init__.py 的内容: from Pymacs import lisp interactions = {} def hello_word(filename): return 'Hello from python, file name is %s' % filename interactions[hello_word] = '' setup.py 的内容: from setuptools import setup, find_packages setup( name = "sample-pymacs", version = "0.1", packages = find

ubuntu安装最新emacs

走远了吗. 提交于 2020-05-06 16:39:00
$sudo add-apt-repository ppa:ubuntu-elisp/ppa $sudo apt update $sudo apt install emacs-snapshot emacs-snapshot-el $emacs --version #查看emacs版本 ———————————————— 版权声明:本文为CSDN博主「Shannon-Li」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_42555131/article/details/80902304 来源: oschina 链接: https://my.oschina.net/u/4408224/blog/4268434

TextMate 2 for Mac(文本编辑器) v2.0.11免激活版

人盡茶涼 提交于 2020-04-30 18:33:22
Mac上好用的文本编辑器是哪个? TextMate 2 mac版 是Macos上一款文本编辑器,支持大量编程语言并作为开源开发。该软件与“BBEdit”并成为苹果电脑上的EMACS和vim,对于程序员来说非常的适合,可以定制许多贴心的功能。为专业脚本编写者和新手用户提供帮助,功能非常强大。 地址: https://www.macw.com/mac/492.html 来源: oschina 链接: https://my.oschina.net/u/4471886/blog/4259609