我已将init.el迁移到组织模式文件,以使用与babel结合的org-mode的灵活性.
但是,我无法让它发挥作用.我怀疑有一些依赖性错误,已经尝试了很多东西来解决它,但我没有技能去理解出错的地方:
这里我的init.el ---除了调用包含所有init代码的org文件外什么都不做
;; from http://orgmode.org/worg/org-contrib/babel/intro.html#literate-programming
;;; init.el --- Where all the magic begins
;;
;; This file loads Org-mode and then loads the rest of our Emacs initialization from Emacs lisp
;; embedded in literate Org-mode files.
;; Load up Org Mode and (now included) Org Babel for elisp embedded in Org Mode files
(package-initialize)
(setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name)))
(require 'org-install)
(require 'ob-tangle)
(org-babel-load-file (expand-file-name "emacs-and-org-init.org" dotfiles-dir))
Run Code Online (Sandbox Code Playgroud)这是组织文件---即使是最小的它也会抛出错误
#+TITLE: Emacs and Org init
#+OPTIONS: toc:2 num:nil …Run Code Online (Sandbox Code Playgroud)关于magit/push的问题
我开始使用magit,对git的经验很少.
我已成功通过magit手册:
adding
ignoring
staging
commiting locally
Run Code Online (Sandbox Code Playgroud)
然后,我尝试推送github.com/myname.为此,我使用'P P',然后输入我的用户名和密码.
如果失败了
来
https://github.com/myname/myrepo![拒绝] master - > master(非快进)错误:无法推送一些refs'https://github.com/myname/myrepo'
提示:更新被拒绝,因为当前分支的
提示落后于提示:它的远程对应物.合并远程更改(例如'git pull')
提示:再次按下之前.
提示:有关详细信息,请参阅"git push -help"中的"关于快进的注意事项".
git与代码1异常退出.
我想我会解决它,因为这里提到git config --global push.default current但它没有帮助.
我有一个很高兴的错误推送到github - 更新被拒绝,因为推动的分支提示在其远程后面,但没有让它工作
任何的想法 ?