Git Product home page Git Product logo

emacs-bootstrap's People

Contributors

avelino avatar csraghunandan avatar hettomei avatar iammrinal0 avatar mrminning avatar nickfun avatar pierre-lecocq avatar rakanalh avatar tiv0w avatar viniciusfeitosa 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

emacs-bootstrap's Issues

smex failed when using ivy mode

Hi, when I use ivy mode and I find that below.

qq20161221-0

Working properly after I press M-x

qq20161221-1

How should I to modify the configration.

Thanks.

custom-file is set but never read

The location of the custom.el file can be altered in the base.el, but the value is never read back.

If the variable is altered from the default value, it will not be loaded after a restart of emacs. Just add this after the Emacs customization block:
`(load custom-file)

(add-hook 'kill-emacs-query-functions
'custom-prompt-customize-unsaved-options)`

saving customizations - emacs manual

Unresponsive Python Emacs

Hello,
I just generated a config folder using your bootstrapper. However when I run emacs I notice that it becomes really sluggish in response. Navigating with an arrow to the next line takes like 2 seconds...
Any indication where I could start looking for a solution? Perhaps too many plugins are being loaded?
I'm running (16.04 ubuntu)
Thanks

Avoid overriding global key bindings

It looks some of the key-bindings that you've made are overriding the default key bindings set by emacs. Some time ago, I had a lengthy discussion about the same issue here. I came into the conclusion to use C-c prefix for most of my user defined key bindings so that they don't override with any default key bindings.

From my quick check here are some key bindings that are overriding the default key bindings:

  • swiper C-x s -> this key binding is bound to save-from-buffers (I use this command a lot)
  • counsel-projectile C-x v -> This is the version control prefix
  • ivy-resume C-x C-r -> This is bound to find-file-read-only (why does this key binding exist? ivy-reusme by default is bound to C-c C-r, which is fine as is)
  • All the key bindgings that begin with prefix C-x c -> this overrides default binding for calc-mode

My suggestion would be to prefix user defined key bindings with C-c instead of C-x, so that we don't accidentally override any key bindings. It might be fine now, but as the user start assigning more bindings to commands, he'll quickly run out of C-x prefixes which aren't bound to any command.

De-selecting languages not working

If I click on a language icon it's shown highlighted and "true" is logged to the console. If I click it again, "true" is just logged again but the language is not deselected. I think you want to change line 9 in static/form.js to:

var newState = checkbox.is(":checked");

(See this SO question for the explanation.)

use-package- not found

I ran into this problem when I tried using this with emacs-26.1. I'm documenting the fix I applied.

You need to change these lines in elisp/base.el

(add-to-list 'package-archives
	     '("melpa" . "http://melpa.org/packages/"))

(add-to-list 'package-archives
             '("elpy" . "http://jorgenschaefer.github.io/packages/"))


(when (not package-archive-contents)
  (package-refresh-contents))

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))

Auto-saving foo.rb: Opening output file: No such file or directory, /Users/x/.emacs.d/private/cache/auto-save-list/#!foo.rb#

I'm using generate default emacs.d configuration, open a file wait minutus emacs report error

config file is:

base.el:

(package-initialize)
(add-to-list 'package-archives
       '("melpa" . "https://melpa.org/packages/")
             '("elpy" . "http://jorgenschaefer.github.io/packages/"))

(when (not package-archive-contents)
  (package-refresh-contents))

(unless (package-installed-p 'use-package)
  (package-install 'use-package))

(defconst private-dir  (expand-file-name "private" user-emacs-directory))
(defconst temp-dir (format "%s/cache" private-dir)
  "Hostname-based elisp temp directories")

;; Core settings
;; UTF-8 please
(set-charset-priority 'unicode)
(setq locale-coding-system   'utf-8)   ; pretty
(set-terminal-coding-system  'utf-8)   ; pretty
(set-keyboard-coding-system  'utf-8)   ; pretty
(set-selection-coding-system 'utf-8)   ; please
(prefer-coding-system        'utf-8)   ; with sugar on top
(setq default-process-coding-system '(utf-8-unix . utf-8-unix))

;; Emacs customizations
(setq confirm-kill-emacs                  'y-or-n-p
      confirm-nonexistent-file-or-buffer  t
      save-interprogram-paste-before-kill t
      mouse-yank-at-point                 t
      require-final-newline               t
      visible-bell                        nil
      ring-bell-function                  'ignore
      custom-file                         "~/.emacs.d/.custom.el"
      ;; http://ergoemacs.org/emacs/emacs_stop_cursor_enter_prompt.html
      minibuffer-prompt-properties
      '(read-only t point-entered minibuffer-avoid-prompt face minibuffer-prompt)

      ;; Disable non selected window highlight
      cursor-in-non-selected-windows     nil
      highlight-nonselected-windows      nil
      ;; PATH
      exec-path                          (append exec-path '("/usr/local/bin/"))
      indent-tabs-mode                   nil
      inhibit-startup-message            t
      fringes-outside-margins            t
      x-select-enable-clipboard          t
      use-package-always-ensure          t)

;; Bookmarks
(setq
 ;; persistent bookmarks
 bookmark-save-flag                      t
 bookmark-default-file              (concat temp-dir "/bookmarks"))

;; Backups enabled, use nil to disable
(setq
 history-length                     1000
 backup-inhibited                   nil
 make-backup-files                  t
 auto-save-default                  t
 auto-save-list-file-name           (concat temp-dir "/autosave")
 make-backup-files                  t
 create-lockfiles                   nil
 backup-directory-alist            `((".*" . ,(concat temp-dir "/backup/")))
 auto-save-file-name-transforms    `((".*" ,(concat temp-dir "/auto-save-list/") t)))

(fset 'yes-or-no-p 'y-or-n-p)
(global-auto-revert-mode t)

;; Disable toolbar & menubar
(menu-bar-mode -1)
(when (fboundp 'tool-bar-mode)
  (tool-bar-mode -1))
(when (  fboundp 'scroll-bar-mode)
  (scroll-bar-mode -1))

(show-paren-mode 1)

;; Delete trailing whitespace before save
(add-hook 'before-save-hook 'delete-trailing-whitespace)

(provide 'base)
;;; base ends here

init.el
(package-initialize)

(add-to-list 'load-path (concat user-emacs-directory "elisp"))

(require 'base)
; (require 'base-extensions)
; (require 'base-functions)
; (require 'base-global-keys)

also I'm checked ~/.emacs.d/private/cache/ not found auto-save-list directory, after create that directory emacs prompt auto-save message ok. this is a bug?

Emacs freezes because of tern

I've found that, if you don't use tern, Emacs tries to connect to it, and fails each time.

error in process sentinel: Searching for program: No such file or directory, tern

On my old laptop it micro-freezes Emacs.

I'll PR a fix to prevent tern and company-tern to load if there is no tern program available.

[Docs] - More documentation

Website:

  • Document frontends
  • Add links to programming languages

Generated Code:

  • Document each el file

Wikis:

  • Create a per-language wiki page to describe available options

List required installs someonewhere

Seems like a great start, but then nothing seems to work.
Maybe you could state a list dependencies that are required to be installed, e.g.
Install Node.js and then the package tern. What is required for python? sass etc?

Org files lead to sluggish behavior

Symptoms

I'm sorry I don't have much concrete info as to why, but here's what I know so far:

  • Org files upwards of around 1000 lines get very sluggish
  • "Sluggish" means slow input response. It can be as bad as multiple seconds before inputs are reflected in the display
  • It doesn't seem to strongly depend on line length, it might also be depth but even 3 levels is enough
  • Some files fail to open at all (too slow? Emacs hang)
  • Disabling org-bullets doesn't help

Environment

Org file modes

Enabled minor modes: Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Cl-Old-Struct-Compat Company
Dumb-Jump Ede Electric-Indent File-Name-Shadow Font-Lock
Global-Auto-Revert Global-Company Global-Ede Global-Eldoc
Global-Font-Lock Global-Git-Commit Global-Linum
Global-Semantic-Idle-Scheduler Global-Semantic-Stickyfunc
Global-Semanticdb Global-Undo-Tree Helm Line-Number Linum
Magit-Auto-Revert Mouse-Wheel Org-Bullets Override-Global Projectile
Pyvenv Recentf Semantic Shell-Dirtrack Show-Paren Tooltip
Transient-Mark Undo-Tree Which-Key Yas Yas-Global

init.el

;;; package --- Main init file
;;; Commentary:
;;; This is my init file

;;; Code:


;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; (package-initialize)

(add-to-list 'load-path (concat user-emacs-directory "elisp"))

;; Set default font
(set-face-attribute 'default nil
                    :family "Monkey"
                    :height 120
                    :weight 'normal
                    :width 'normal)

(require 'base)
(require 'base-theme)
(require 'base-extensions)
(require 'base-functions)
(require 'base-global-keys)

(require 'lang-python)

(require 'lang-ruby)

(require 'lang-go)

(require 'lang-javascript)

(require 'lang-web)

(require 'lang-rust)

(require 'lang-c)

(blink-cursor-mode 0)
(put 'scroll-left 'disabled nil)

; Cut shell CRs from bash or something
(add-hook 'comint-output-filter-functions
          'comint-strip-ctrl-m)

(setq company-idle-delay 0.5)
(setq company-tooltip-idle-delay 0.5)

(require 'projectile)
(define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)

(require 'helm)
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
(global-set-key (kbd "C-s") 'helm-swoop)

(require 'browse-at-remote)
(global-set-key (kbd "C-c g") 'browse-at-remote)

(require 'magit-gh-pulls)
(add-hook 'magit-mode-hook 'turn-on-magit-gh-pulls)

(server-start)

(version)

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-09-19

Adding JSX to list of languages

Disclsocure: This is a plug for my own mode

Would it be possible to add JSX as its own language in the selection pane, including rjsx-mode as the package to use for it? rjsx extends js2 to add syntax highlighting for JSX -- no config needed beyond just use-package. You could just use the React logo, which is CC BY 4.0 licensed

Cargo process new

cargo process new should be avalible in the global key map, since you will use it in directories to create a rust project.
keybinding: C-c C-c C-n

[editing] - enable save-place-mode and subword-mode

save-place-mode is incredibly useful. I can resume from where I left off when I last visited the file :) And another useful editing tip is enabling auto-fill-mode ONLY inside comments with (setq comment-auto-fill-only-comments t)

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.