Code Monkey home page Code Monkey logo

lazycat-emacs's Introduction

Hi, I'm ManateeLazyCat

About Me

I often use English name Andy Stewart, my Chinese name is 王勇.

Here are some ideas to get you started:

  • Self-study computer and programming technology
  • Mobile game developer (2005 ~ 2007)
  • Create a clothing factory (2007 ~ 2009)
  • Pre-CTO of deepin operating system (2010 ~ 2018)
  • Own several IT companies now (2019 ~ now)
  • Like self-driving tour, live with kind wife and cute daughter
  • A lot of time on EAF and lsp-bridge

Skills: Python、C、C++、Emacs Lisp、Haskell、Golang、Vala、JavaScript、Ruby、Lua and more

Welcome to my Chinese blog: manateelazycat.github.io

Coding Life

Github Stats

Most Used Languages

Recent Activity

lazycat-emacs's People

Contributors

chep avatar choldrim avatar dependabot[bot] avatar felixonmars avatar jenenliu avatar jimmoen avatar konradvoelkel avatar kpengboy avatar manateelazycat avatar pylemon avatar reionwong avatar ustcscgy avatar xiaogema avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lazycat-emacs's Issues

mark-rectangle-to-end 函数失效

猫哥,

请教您一个问题,我用矩形选择中的mark-rectangle-to-end功能,提示找不到goto-longest-line这个函数。这个函数依赖的是哪个包?

site-lisp/config/init-key.el 中的
("s-:" . mark-rectangle-to-end) ;标记矩形到行末

我尝试过用下面这个包中的goto-longest-line,但是感觉行为有点怪。
https://www.emacswiki.org/emacs/misc-cmds.el

auto-save.el 报错 Error running timer ‘auto-save-buffers’: (user-error "Unmatched bracket or quote")

Hi 老王,咨询个关于auto-save.el插件的问题,我用auto-save.el 这个插件应该也有两三年了,但是一直会遇到一个问题, 出现频率倒不高, 详细信息如下:

报错信息:

Error running timer ‘auto-save-buffers’: (user-error "Unmatched bracket or quote")

尝试自行解决步骤

  1. 尝试开启 toggle-debug-on-error调试无果,没有错误堆栈.
  2. google 搜索相关错误无果

复现步骤:

  1. 新增test.md文件
  2. 输入以下信息:
1 -》 
  1. Message 显露错误信息

调试之后还是无法解决问题,只能来请教您这位作者了呢 :)

extension find-orphan branch name issue

I was trying to install your emacs configuration and when excuting git submodule foreach git checkout master I got the following error:

Entering 'site-lisp/extensions/find-orphan'
error: pathspec 'master' did not match any file(s) known to git
fatal: run_command returned non-zero status for site-lisp/extensions/find-orphan
.

I checked the find-orphan repository and found that there was only one main branch. Should that be renamed to master?

This also happens to grammatical-edit, isearch-mb, one-key and maybe some more extensions.

startup Lisp error file missing exec-path-from-shell

env

  • macOS: 10.14
  • emacs: 26.1
  • zsh: 5.1.1

现象

第一次启动后,报错如下:

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "exec-path-from-shell")
  require(exec-path-from-shell)

问题

@manateelazycat 请教:

  1. 如何修复?
  2. 是否与 ~/.zshrc 中设置的 PATH 变量相关?

子模组未对路径注册

大佬,git了你的emacs配置,但执行 “git submodule update --init --recursive” 后,很多提示如下:

子模组 'Indium'(https://github.com/NicolasPetton/Indium)未对路径 'site-lisp/extensions/Indium' 注册
子模组 'apiwrap'(https://github.com/vermiculus/apiwrap.el.git)未对路径 'site-lisp/extensions/apiwrap' 注册
子模组 'auto-rename-tag'(https://github.com/jcs090218/auto-rename-tag.git)未对路径 'site-lisp/extensions/auto-rename-tag' 注册
子模组 'auto-save'(https://github.com/manateelazycat/auto-save.git)未对路径 'site-lisp/extensions/auto-save' 注册
子模组 'aweshell'(https://github.com/manateelazycat/aweshell.git)未对路径 'site-lisp/extensions/aweshell' 注册
子模组 'awesome-pair'(https://github.com/manateelazycat/awesome-pair.git)未对路径 'site-lisp/extensions/awesome-pair' 注册
子模组 'awesome-tab'(https://github.com/manateelazycat/awesome-tab.git)未对路径 'site-lisp/extensions/awesome-tab' 注册
子模组 'awesome-tray'(https://github.com/manateelazycat/awesome-tray.git)未对路径 'site-lisp/extensions/awesome-tray' 注册
子模组 'benchmark-init-el'(https://github.com/dholm/benchmark-init-el.git)未对路径 'site-lisp/extensions/benchmark-init-el' 注册
子模组 'bison'(https://github.com/manateelazycat/bison.git)未对路径 'site-lisp/extensions/bison' 注册
子模组 'cache-path-from-shell'(https://github.com/manateelazycat/cache-path-from-shell.git)未对路径 'site-lisp/extensions/cache-path-from-shell' 注册
。。。。。。。。。。。。。。

请问这是什么原因呢,会不会对配置有影响,期待大佬的回复

`git checkout master` error

when running:

git submodule foreach git checkout master

error:

Entering 'site-lisp/extensions/find-orphan'
error: pathspec 'master' did not match any file(s) known to git
fatal: run_command returned non-zero status for site-lisp/extensions/find-orphan

why this error:

find-orphan's default branch is main not master

贴子“十年没按保存键”中auto-save.el链接挂了

您好,如题,文章中auto-save.el下载不了了。
还有,源码解析中,第二段中“; 第一个参数...”那-save写拼成s-ave了。
最后感谢文章及相关文章中细致耐心的讲解(我是一个英语渣),期待您的基础文章的续集

无法在Mac OS下配置

在终端输入:

git clone --depth 1 git://git.savannah.gnu.org/emacs.git

报错:

正克隆到 'emacs'...
fatal: 无法读取远程仓库。

ubuntu下安装出现 Font not available

环境

os: ubuntu16
emacs: 26.1

Droid Sans Mono 字体有通过以下命令安装

sudo apt-get install fonts-droid-fallback

操作

经过了下载emacs的源码,并编译安装 emacs 后,启动。

emacs

效果

然后出现如下错误

Eager macro-expansion failure: (void-function -map)
set-face-attribute: Font not available: #<font-spec nil nil Droid\ Sans\ Mono-14 nil nil nil nil nil nil nil nil nil ((:name . "Droid Sans Mono-14") (:user-spec . "Droid Sans Mono-14"))>

是否字体安装或配置错误?

其它

另问,有没有ubuntu下安装指北?

Please use additional repositories

Please consider using a separate dedicated repository for each of your own packages. This is more convenient for people who want to use only one of your packages and would like to get it by cloning its repository. Some people, including myself, prefer installing from a git repository over using package.el for a variety of reasons.

This repository already contains some packages in the form of git submodules so it seems you know how to deal with the sharp edges of that approach. Please consider doing the same with your own packages.

You might also look at my borg package manager. In the announcement I also described some benefits of using git modules for package installation.

Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "eaf-file-manager")

如何应在ubuntu下配置

我按照install on arch liunx的五个步骤操作,其中
第一部我使用的是snap安装的;
第二部我安装的方式:sudo apt install ttf-wqy-microhei
之后的三步都有照做。

但是似乎并没有自动配置到新安装的emacs中;
然而,当我打开site-start.el文件,运行M-x eval-buffer是有作用的!

我希望打开emacs的使用应该是自动配置的

麻烦了

如何切换tab窗口

现象

buffer 总数是

窗口A的buffer是

另一个窗口B打开只有 a.el 文件

在 窗口A下,可通过 alt-7, alt-8 来回切换,但是,切换不到 a.el buffer

问题

@manateelazycat 请教:

  1. 如何从 当前 a.el buffer 窗口,切换至 message buffer?
  2. 之间的逻辑关系,在哪里查看或理解?

can't write doc string in python function

hi, I try to write a multi line doc string in python function like this:

def hello():
    """this is a hello 
    multi line doc string"""

But when I insert two " character, which will show 4 " in buffer, and then I just can't type any more ",
there is an error, I can't fix this, so I report this issue.

Debugger entered--Lisp error: (scan-error "Unbalanced parentheses" 298 303)
  scan-sexps(298 1)
  forward-sexp(1)
  python-nav--lisp-forward-sexp(1)
  python-nav--forward-sexp(1 nil nil)
  python-nav-forward-sexp(1)
  forward-sexp(1)
  (let ((start (nth 8 (or state (paredit-current-parse-state))))) (goto-char start) (forward-sexp 1) (cons start (1- (point))))
  (save-excursion (let ((start (nth 8 (or state (paredit-current-parse-state))))) (goto-char start) (forward-sexp 1) (cons start (1- (point)))))
  paredit-string-start+end-points()
  (cdr (paredit-string-start+end-points))
  (eq (cdr (paredit-string-start+end-points)) (point))
  (if (eq (cdr (paredit-string-start+end-points)) (point)) (forward-char) (insert 92 34))
  (cond ((paredit-in-string-p) (if (eq (cdr (paredit-string-start+end-points)) (point)) (forward-char) (insert 92 34))) ((paredit-in-comment-p) (insert 34)) ((not (paredit-in-char-p)) (paredit-insert-pair n 34 34 'paredit-forward-for-quote)))
  paredit-doublequote(nil)
  funcall-interactively(paredit-doublequote nil)
  call-interactively(paredit-doublequote nil nil)
  command-execute(paredit-doublequote)

OS : Mac OS High Sierra

Mac 下 .emacs 无效

RT,按照 REAMDE 进行 emacs 编译,下载配置文件,并且设置了 .emacs
但是实际 emacs 没有使用 .emacs 的配置文件
另外,补充一下,为了在终端下使用 emacs,最好设置一下 alias, 不然打开的是 mac 自带的 emacs

Bugs ( maybe ) in site-lisp/extensions/lazycat/basic-toolkit.el

How to reproduce

  1. open a buffer and add some lines to it
  2. call insert-line-number+
  3. call strip-line-number

What It should be

All line numbers added to the beginning of every line should be removed.

What I get

Only the line number of the last line was removed. And then I got an error in *message*:

Match data clobbered by buffer modification hooks

My question

I found someone had similar problem https://stackoverflow.com/questions/41402028/re-replace-region-match-data-clobbered-by-buffer-modification-hooks

But I had no idea to fix it.

Besides

In line 133, the rg expression should be "^[0-9]+ " ( add one more spaces at the end of the expression). Otherwise, a spaces at the beginning of the line was left after line number was removed.

问题?

当我在lazycat-emacs文件夹运行 git submodule foreach git checkout master
出现下面错误:
您的分支与上游分支 'origin/master' 一致。
进入 'site-lisp/extensions/f'
已经位于 'master'
您的分支与上游分支 'origin/master' 一致。
进入 'site-lisp/extensions/find-orphan'
error: 路径规格 'master' 未匹配任何 git 已知文件
fatal: 对 site-lisp/extensions/find-orphan 执行 run_command 返回非零值。
.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.