Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
emacs.d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
Liu Miao
emacs.d
Commits
3c6dd395
Commit
3c6dd395
authored
4 years ago
by
MoScribe
Browse files
Options
Downloads
Patches
Plain Diff
Use display-line-numbers to replace linum-mode
parent
6653d4dd
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init.el
+7
-2
7 additions, 2 deletions
init.el
with
7 additions
and
2 deletions
init.el
+
7
−
2
View file @
3c6dd395
...
@@ -109,9 +109,8 @@
...
@@ -109,9 +109,8 @@
;; use y-n to replace yes-no
;; use y-n to replace yes-no
(
fset
'yes-or-no-p
'y-or-n-p
)
(
fset
'yes-or-no-p
'y-or-n-p
)
(
add-hook
'prog-mode-hook
'linum-mode
)
(
add-hook
'prog-mode-hook
(
lambda
()
(
setq
truncate-lines
t
)))
(
add-hook
'prog-mode-hook
(
lambda
()
(
setq
truncate-lines
t
)))
;;; Packages
;;; Packages
(
require
'package
)
(
require
'package
)
(
setq
package--init-file-ensured
t
(
setq
package--init-file-ensured
t
...
@@ -144,6 +143,11 @@
...
@@ -144,6 +143,11 @@
'recentf-save-list
)))
'recentf-save-list
)))
)
)
(
use-package
display-line-numbers
:hook
(
prog-mode
.
display-line-numbers-mode
)
)
;;
;;
(
use-package
saveplace
(
use-package
saveplace
:hook
(
after-init
.
save-place-mode
)
:hook
(
after-init
.
save-place-mode
)
...
@@ -332,5 +336,6 @@
...
@@ -332,5 +336,6 @@
(
require
'init-org
)
(
require
'init-org
)
)
)
(
provide
'init
)
(
provide
'init
)
;;; init.el ends here
;;; init.el ends here
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment