Code Monkey home page Code Monkey logo

dotfiles's Issues

[Shell.Zsh] Alias "grm" Conflict with Command "rm" of Homebrew's Package "coreutils" on macOS

The Homebrew's package "coreutils" provide GNU File, Shell, and Text utilities to macOS, commands also provided by macOS have been installed with the prefix "g", so the "rm" provided by "coreutils" is installed as "grm".

With git plugin, zsh defines "grm" as a alias of "git rm", so it will override the "rm" of "coreutils". The "rm" of "coreutils" is more useful than the macOS's one, because it can use like "rm xxx -rf", but macOS's only can use like "rm -rf xxx".

[Editor.Spacemacs] "whitespace-space" Face Is Wrong, It Always Are Orange.

  1. It have nothing to do with the monokai theme, because use other theme the issue will still exist.
  2. After launching emacs, change the theme using SPC-T-n, then the face will be the correct value defined by the theme.
  3. Maybe it relevant to whitespace-mode.
  4. In Linux terminal environment, there will be a orange background too, but Linux GUI, Mac terminal and GUI won't.

The "Shift" Key Can't Disable "Mouse Reporting" in macOS Terminal

"Mouse Reporting" means that mouse click and position will be encoded in an escape string, then mouse-aware terminal applications (e.g., vim, emacs) can use these information to perform functions like any "real" GUI programs use a mouse.

In terminal applications like "XTerm", "Mintty", the "Shift" key can disable "Mouse Reporting" temporarily, this feature is very useful, with it we can select and copy text from terminal applications to clipboard easily.

[Shell] Environment Variable "DOTFILES" Auto Detection Can't Support Absolute Path

Currently only if the shell initialization file (.zshrc) is a relative link, then the env "DOTFILES" can be set correctly by the logic of file shell/zsh/zshrc because of below code.

dotfiles/shell/zsh/zshrc

Lines 75 to 89 in 88e1a6d

# Setting the full path of our dotfiles directory automatically.
# This script can be executed through 3 different ways.
# - Executed directly by shell through symbolic link(e.g., ~/.zshrc -> zshrc)
# - sourced by other script through symbolic link(e.g., source ~/.zshrc)
# - sourced by other script directly(e.g., source zshrc)
# Below line of code can get the full path of this script no matter how this
# script is executed.
SHRC=${(%):-%x}
# Resolve the real path of this script, if it is a symbolic link.
while [[ -L ${SHRC} ]]; do
SHRC=`dirname ${SHRC}`/`readlink ${SHRC}`
done
OLD_DIR=`pwd`; cd `dirname ${SHRC}`/../..; unset SHRC
export DOTFILES=`pwd`
cd ${OLD_DIR}; unset OLD_DIR

[Editor.Spacemacs] Mouse Wheel Can't Work on Emacs Which without Any Window System

The mouse wheel can't work when the emacs is built without any window system, but the mouse click work well no matter left/right mouse click or double click.

(if (fboundp 'x-create-frame)
    ;; Do it after loading term/foo-win.el since the value of the
    ;; mouse-wheel-*-event vars depends on those files being loaded or not.
    (load "mwheel"))

After some investigation I found above code snippet in file "lisp/loadup.el", obviously the package "mwheel" won't be loaded if the Emacs is built without any window system, this is the root cause of this issue.

From comments in above code snippet, it seems that the package "mwheel" depends on window system packages, e.g., "term/ns-win.el", because of the initialization of variables "mouse-wheel-*-event", but from the source code of package "mwheel", these variables only depends on the feature "win32-win" and "ns-win" to set the initial value, in other words, the package "mwheel" can work without any window system.

After add below code snippet to the configuration file of Emacs, the mouse wheel work well on Emacs which built without any window system.

(require 'mwheel)
(mouse-wheel-mode t)

It seems that the developer of package "mwheel" is too strict for the condition to load it, so I file a bug report to https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47162.

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.