小编inc*_*man的帖子

如何在OSX上的GNU Emacs中获得透明窗口?

我在OSX Mavericks中使用GNU Emacs,我试图让我的背景透明而不是文本.

有一种简单的方法可以使整个框架透明:

(set-frame-parameter (selected-frame) 'alpha '(85 85))
(add-to-list 'default-frame-alist '(alpha 85 85))
Run Code Online (Sandbox Code Playgroud)

但这使得整个框架透明/半透明,包括文本.我只希望框架背景是透明的,文本是纯黑色.Emacs Wiki上有人说这样的实现必须是特定于操作系统的.那么,有没有人知道如何为OSX做这个?

使用所需的设置,Emacs将如下所示:
真正透明的Emacs窗口.

同样,我希望窗口100%透明,前景文本100%不透明,它应该在Emacs的全屏模式下工作.

macos emacs terminal aquamacs org-mode

11
推荐指数
1
解决办法
4970
查看次数

如何解决GitHub消息,其中显示当前分支的提示位于其远程对应的后面?

我正在努力学习如何使用GitHub来控制我的工作.(我一个人工作,没有合作者,没有不同的分支,只有我在我去的时候备份我的工作.)我在BitBucket.org上建立了私人Git存储库.我使用GitHub for OSX作为我的Git GUI.

但是,当我在我的硬盘驱动器上的本地Git存储库中编辑文件时,然后使用GitHub for OSX尝试"提交和同步",我收到此错误:

git: 'credential-osxkeychain' is not a git command. See 'git --help'.
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
2013-02-12 02:49:07.409 GitHub for Mac Login[44516:707] AskPass with arguments: (
    "/Applications/GitHub.app/Contents/MacOS/GitHub for Mac Login",
    "Password for 'https://username@bitbucket.org': "
)
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
git: 'credential-osxkeychain' is not a git command. See 'git --help'.
To https://username@bitbucket.org/username/data.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs …
Run Code Online (Sandbox Code Playgroud)

git version-control github bitbucket

10
推荐指数
1
解决办法
3万
查看次数

如何使用org-mode与其他作者合作?

我正在使用org-mode.如何与未使用Emacs的其他人协作?

文档协作的标准似乎是Google Drive/Google Docs.这很好,但我首选的环境是Emacs org-mode.如果没有剪切全文,在Emacs中编辑它,然后在我完成时粘贴它,有没有办法与不使用Emacs的人来回共享编辑和更新?

collaboration emacs version-control org-mode

10
推荐指数
1
解决办法
2528
查看次数

如何让Emacs键绑定识别大写字母?

如何让Emacs识别MC(meta-shift-c)而不是将其翻译为mc?

目前,当我这样做时,C-h k M-C我得到: M-c (translated from M-C) runs the command capitalize-word.

如何才能将MC翻译成Mc?

emacs elisp

10
推荐指数
1
解决办法
1185
查看次数

如何让Dired忽略具有特定扩展名的文件

我将以下内容放在我的.emacs文件中:

(require 'dired-x)
(add-hook 'dired-load-hook '(lambda () (require 'dired-x)))
(setq dired-omit-files-p t)
(setq dired-omit-files
(concat dired-omit-files "\\|^\\..+$\\|-t\\.tex$\\|-t\\.pdf$"))
Run Code Online (Sandbox Code Playgroud)

C-x d仍然显示.pdf和.tex文件.我在最后一行中的语法错了吗?

奖金问题:有没有办法让Dired隐藏隐藏的目录,比如.git文件夹?

emacs dired

9
推荐指数
2
解决办法
2988
查看次数

如何获得org-mode导出的智能报价?

当我导出到HTML时,如何让Emacs组织模式创建正确的印刷标记,包括将直引号转换为智能引号("引号")并将连字符转换---为m-dashes

emacs typography smart-quotes org-mode smartypants

9
推荐指数
3
解决办法
3743
查看次数

如何全局替换PDF中的字体

是否可以使用Adobe Acrobat或其他工具全局替换PDF中的字体?

我怎样才能做到这一点?

pdf acrobat pdf-generation pdfbox

9
推荐指数
2
解决办法
6013
查看次数

如何防止 Emacs dired 将框架分成两个以上的窗口?

在 Emacs dired 缓冲区中,如果我在文件名上导航并点击ofor dired-find-file-other-window, dired 会成功产生所需的行为:在辅助窗口中打开文件。

但是,如果我然后导航指向第二个文件名并再次点击o,则 dired再次拆分框架并在第三个窗口中打开文件。

如何指示直接重用第二个窗口,以便在一个框架中始终最多有两个窗口?

emacs dired

9
推荐指数
2
解决办法
1302
查看次数

自Xetex弃用以来使用Pandoc降价至PDF

在我的MacBook(OSX Mountain Lion)上,我曾经使用此Pandoc命令将Markdown转换为PDF:

$ markdown2pdf -N -o pandoc_output.pdf  --xetex --toc --template=mytemplate.tex myfile.md
Run Code Online (Sandbox Code Playgroud)

markdown2pdf不再有效,并且不推荐使用--xetex选项markdown2pdf -N -o ../../Desktop/pandoc_output.pdf --xetex --toc --template=mytemplate-headers-garamond_date.tex.

如果我这样做:

$ pandoc -N -o Desktop/pandoc_output.pdf  --xetex --toc --template=mytemplate.tex myfile.md
Run Code Online (Sandbox Code Playgroud)

我明白了:

pandoc: unrecognized option `--xetex'
Run Code Online (Sandbox Code Playgroud)

但如果我拿出--xetex来做这件事:

$ pandoc -N -o Desktop/pandoc_output.pdf  --toc --template=mytemplate.tex myfile.md
Run Code Online (Sandbox Code Playgroud)

然后我明白了:

pandoc: Error producing PDF from TeX source.
! Package hyperref Error: Wrong driver option `xetex',
(hyperref)                because XeTeX is not detected.

See the hyperref package documentation for explanation. …
Run Code Online (Sandbox Code Playgroud)

markdown latex xetex pandoc

8
推荐指数
2
解决办法
7283
查看次数

在Emacs中,如何启用自动隐藏dired细节?

我使用一个名为dired-details和dired-details +的库来简化dired的显示,这样就像这样一行:

-rw-r--r--@  1 peter  staff  22571 Apr 15 16:05 foo.txt
Run Code Online (Sandbox Code Playgroud)

显示如下:

foo.txt
Run Code Online (Sandbox Code Playgroud)

但是,我有另一个函数,它将所有目录放在列表的顶部:

(defun mydired-sort ()
"Sort dired listings with directories first."
(save-excursion
 (let (buffer-read-only)
  (forward-line 2) ;; beyond dir. header
  (sort-regexp-fields t "^.*$" "[ ]*." (point) (point-max)))
(set-buffer-modified-p nil)))

(defadvice dired-readin
(after dired-after-updating-hook first () activate)
 "Sort dired listings with directories first before adding marks."
 (mydired-sort))
Run Code Online (Sandbox Code Playgroud)

并且这第二个函数干扰了dired-details,这样当我C-x d打开一个dired缓冲区时,初始显示会显示完整的无关细节.只需按下grevert-buffer刷新显示,目录详细信息就会隐藏.

如何在所有直接显示中默认启用隐藏详细信息?

emacs dired

8
推荐指数
1
解决办法
2641
查看次数