我在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将如下所示:
.
同样,我希望窗口100%透明,前景文本100%不透明,它应该在Emacs的全屏模式下工作.
我正在努力学习如何使用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) 我正在使用org-mode.如何与未使用Emacs的其他人协作?
文档协作的标准似乎是Google Drive/Google Docs.这很好,但我首选的环境是Emacs org-mode.如果没有剪切全文,在Emacs中编辑它,然后在我完成时粘贴它,有没有办法与不使用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文件中:
(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文件夹?
当我导出到HTML时,如何让Emacs组织模式创建正确的印刷标记,包括将直引号转换为智能引号("引号")并将连字符转换---为m-dashes —?
是否可以使用Adobe Acrobat或其他工具全局替换PDF中的字体?
我怎样才能做到这一点?
在 Emacs dired 缓冲区中,如果我在文件名上导航并点击ofor dired-find-file-other-window, dired 会成功产生所需的行为:在辅助窗口中打开文件。
但是,如果我然后导航指向第二个文件名并再次点击o,则 dired再次拆分框架并在第三个窗口中打开文件。
如何指示直接重用第二个窗口,以便在一个框架中始终最多有两个窗口?
在我的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) 我使用一个名为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缓冲区时,初始显示会显示完整的无关细节.只需按下g以revert-buffer刷新显示,目录详细信息就会隐藏.
如何在所有直接显示中默认启用隐藏详细信息?